Skip to content

Commit 21cdb1a

Browse files
committed
Use old style hash for older Ruby
1 parent f97c177 commit 21cdb1a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/rspec/rails/matchers/have_http_status.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,15 +292,15 @@ def failure_message_when_negated
292292
if 5 < ::Rails::VERSION::MAJOR ||
293293
(::Rails::VERSION::MAJOR == 5 && 2 <= ::Rails::VERSION::MINOR)
294294
RESPONSE_METHODS = {
295-
success: 'successful',
296-
error: 'server_error',
297-
missing: 'not_found'
295+
:success => 'successful',
296+
:error => 'server_error',
297+
:missing => 'not_found'
298298
}.freeze
299299
else
300300
RESPONSE_METHODS = {
301-
successful: 'success',
302-
server_error: 'error',
303-
not_found: 'missing'
301+
:successful => 'success',
302+
:server_error => 'error',
303+
:not_found => 'missing'
304304
}.freeze
305305
end
306306

0 commit comments

Comments
 (0)