thoughtbot / clearance

Rails authentication with email & password.

This URL has Read+Write access

qrush (author)
Thu Jul 09 11:51:52 -0700 2009
commit  03406c07039697032677679e7c40b17d5d7f961e
tree    2491a880de79d74b0227239b537df37a611ce53a
parent  df4afe9791464bb3c6fec6e0f3c461f3e79407ee
clearance / test / test_helper.rb
100644 23 lines (17 sloc) 0.532 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) +
                         "/rails_root/config/environment")
require 'test_help'
 
$: << File.expand_path(File.dirname(__FILE__) + '/..')
require 'clearance'
 
gem 'thoughtbot-factory_girl'
 
require 'factory_girl'
begin
  require 'redgreen'
rescue LoadError
end
 
require File.join(File.dirname(__FILE__), '..', 'shoulda_macros', 'clearance')
 
class ActiveSupport::TestCase
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures = false
end