Sha256: 4df020719f4a30bbc147cc308f7888458b31ec0c3e8fa512bd8b024fb698f0c5

Contents?: true

Size: 740 Bytes

Versions: 9

Compression:

Stored size: 740 Bytes

Contents

ENV["RAILS_ENV"] ||= "test"

require "rails/all"
require "dummy/application"

require "clearance/rspec"
require "factory_girl_rails"
require "rspec/rails"
require "shoulda-matchers"
require "timecop"

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

Dummy::Application.initialize!

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods
  config.infer_spec_type_from_file_location!
  config.order = :random
  config.use_transactional_fixtures = true

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
  end
end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
clearance-1.12.1 spec/spec_helper.rb
clearance-1.12.0 spec/spec_helper.rb
clearance-1.11.0 spec/spec_helper.rb
clearance-1.10.1 spec/spec_helper.rb
clearance-1.9.0 spec/spec_helper.rb
clearance-1.8.1 spec/spec_helper.rb
clearance-1.8.0 spec/spec_helper.rb
clearance-1.7.0 spec/spec_helper.rb
clearance-1.6.1 spec/spec_helper.rb