diff --git a/lib/shoulda/matchers/action_controller/respond_with_matcher.rb b/lib/shoulda/matchers/action_controller/respond_with_matcher.rb index ef6e1bcd1..2217b54c3 100644 --- a/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +++ b/lib/shoulda/matchers/action_controller/respond_with_matcher.rb @@ -133,7 +133,7 @@ def symbol_to_status_code(potential_symbol) when :missing then 404 when :error then 500..599 when Symbol - ::Rack::Utils::SYMBOL_TO_STATUS_CODE[potential_symbol] + ::Rack::Utils.status_code(potential_symbol) else potential_symbol end