feature/share-libs
rb 14 lines 417 Bytes
Raw
1 ENV['RAILS_ENV'] ||= 'test'
2 require File.expand_path('../../config/environment', __FILE__)
3 require 'rails/test_help'
4
5 class ActiveSupport::TestCase
6 # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7 fixtures :all
8
9 # Add more helper methods to be used by all tests here...
10 # Returns true if a test user is logged in.
11 def is_user_signed_in?
12 !session[:user_id].nil?
13 end
14 end