Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 514 Bytes
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
fixtures :all
def login
user = Member.authenticate('test@foobar.com', 'password')
session[:user_id] = user.id if user
end
end