aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-11-07 11:35:01 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-11-07 11:35:01 +0100
commit6158355f2eb51f6768c60077a177af370e95a14b (patch)
treee8bdefc7e4f8b805a04b231c9115eb3c8aea64b0 /activerecord
parent61e4738c5d9801900c6cc496f8b1ca671114c83c (diff)
downloadrails-6158355f2eb51f6768c60077a177af370e95a14b.tar.gz
rails-6158355f2eb51f6768c60077a177af370e95a14b.tar.bz2
rails-6158355f2eb51f6768c60077a177af370e95a14b.zip
Fix wrong `assert_equal` argument order.
It goes expected, then actual. Only changed this because the file was just touched (please don't submit pull requests :)).
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/connection_management_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/connection_management_test.rb b/activerecord/test/cases/connection_management_test.rb
index 6f9ffed0f5..d43668e57c 100644
--- a/activerecord/test/cases/connection_management_test.rb
+++ b/activerecord/test/cases/connection_management_test.rb
@@ -92,14 +92,14 @@ module ActiveRecord
app = lambda { |_| [200, {}, body] }
response_body = ConnectionManagement.new(app).call(@env)[2]
assert response_body.respond_to?(:to_path)
- assert_equal response_body.to_path, "/path"
+ assert_equal "/path", response_body.to_path
end
test "doesn't mutate the original response" do
original_response = [200, {}, 'hi']
app = lambda { |_| original_response }
ConnectionManagement.new(app).call(@env)[2]
- assert_equal original_response.last, 'hi'
+ assert_equal 'hi', original_response.last
end
end
end