Sha256: 1c850be50c5c0920c3926a6801cfc4e755998acf144ace34af72cd542b5f01de
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
ENV["RAILS_ENV"] ||= "test" require "rails/all" require "dummy/application" require "clearance/rspec" require "factory_bot_rails" require "rails-controller-testing" 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 FactoryBot::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 config.before { restore_default_warning_free_config } end Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec with.library :action_controller with.library :active_model with.library :active_record end end def restore_default_warning_free_config Clearance.configuration = nil end
Version data entries
6 entries across 6 versions & 1 rubygems