Sha256: bb28a3310a94cd7e46e57477707b61ac752af7035aebb5eeff1b537d01942c58

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

PROJECT_ROOT = File.expand_path('../..', __FILE__)
$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')

require 'rails/all'
require 'rails/test_help'

Bundler.require

require 'clearance/testing/application'
require 'rspec/rails'
require 'bourne'
require 'factory_girl_rails'
require 'shoulda-matchers'
require 'clearance/rspec'
require 'timecop'

Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }

Clearance::Testing::Application.initialize!

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.mock_with :mocha
  config.use_transactional_fixtures = true
  config.infer_spec_type_from_file_location!
end

def restore_default_config
  Clearance.configuration = nil
  Clearance.configure {}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clearance-1.5.1 spec/spec_helper.rb
clearance-1.5.0 spec/spec_helper.rb