We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f97c177 commit 21cdb1aCopy full SHA for 21cdb1a
lib/rspec/rails/matchers/have_http_status.rb
@@ -292,15 +292,15 @@ def failure_message_when_negated
292
if 5 < ::Rails::VERSION::MAJOR ||
293
(::Rails::VERSION::MAJOR == 5 && 2 <= ::Rails::VERSION::MINOR)
294
RESPONSE_METHODS = {
295
- success: 'successful',
296
- error: 'server_error',
297
- missing: 'not_found'
+ :success => 'successful',
+ :error => 'server_error',
+ :missing => 'not_found'
298
}.freeze
299
else
300
301
- successful: 'success',
302
- server_error: 'error',
303
- not_found: 'missing'
+ :successful => 'success',
+ :server_error => 'error',
+ :not_found => 'missing'
304
305
end
306
0 commit comments