diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f8095dd86..020638af3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,6 +16,7 @@ # The default value for this setting is true in a standard Rails app, # so it should be set to true here as well to reflect that. I18n.enforce_available_locales = true +Grape::Util::Registry.prepend(Deregister) RSpec.configure do |config| config.include Rack::Test::Methods @@ -23,10 +24,7 @@ config.raise_errors_for_deprecations! config.filter_run_when_matching :focus - config.before(:all) do - Grape::Util::InheritableSetting.reset_global! - Grape::Validations.include(Deregister) - end + config.before(:all) { Grape::Util::InheritableSetting.reset_global! } config.before { Grape::Util::InheritableSetting.reset_global! } # Enable flags like --only-failures and --next-failure