From 40c1b436d369bab22e7997eec530a3f3a61bf164 Mon Sep 17 00:00:00 2001 From: William Fish Date: Tue, 17 May 2022 11:22:09 +0100 Subject: [PATCH] Disable RSpec dsl in main This is consistent with the rails generators and it is generally more desirable to do things in one way, only: https://github.com/rspec/rspec-rails/commit/ca0d249858903949052e06884e8e7f9d596cdc79 --- spec/rails_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 112f9aee..9a3f516e 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -19,6 +19,7 @@ config.infer_spec_type_from_file_location! config.filter_rails_from_backtrace! config.example_status_persistence_file_path = 'rspec.txt' + config.expose_dsl_globally = false config.include FactoryBot::Syntax::Methods config.include Rails.application.routes.url_helpers, :step config.before do