aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-05-20 09:58:15 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2012-05-20 19:07:04 +0100
commit972376a9952ce3a1cb1babb9e408900d314ac577 (patch)
treee8cc7410933966063897af9e1d5b30fc2ca471be /actionpack/lib/action_dispatch/testing/assertions
parentad3f47dc2f27a74b43c29ae66820f15239c81f21 (diff)
downloadrails-972376a9952ce3a1cb1babb9e408900d314ac577.tar.gz
rails-972376a9952ce3a1cb1babb9e408900d314ac577.tar.bz2
rails-972376a9952ce3a1cb1babb9e408900d314ac577.zip
Correct order of expected and actual arguments
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb
index 3d121b6b9c..b4c8f839ac 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -28,7 +28,7 @@ module ActionDispatch
assert @response.send("#{type}?"), message
else
code = Rack::Utils::SYMBOL_TO_STATUS_CODE[type]
- assert_equal @response.response_code, code, message
+ assert_equal code, @response.response_code, message
end
else
assert_equal type, @response.response_code, message