Skip to content

Commit

Permalink
Use prepend
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Dec 15, 2024
1 parent 257a90c commit 710aa2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@
# 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
config.include Spec::Support::Helpers
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
Expand Down

0 comments on commit 710aa2e

Please sign in to comment.