From a3f030686bbcfb215ae5635e1c7a92d0346db732 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sun, 22 Mar 2015 20:25:07 -0300 Subject: Fix arguments order on assertion The expected value comes first. Related to #19465. --- activemodel/test/cases/errors_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/test') diff --git a/activemodel/test/cases/errors_test.rb b/activemodel/test/cases/errors_test.rb index 27631005e5..ddd003d53f 100644 --- a/activemodel/test/cases/errors_test.rb +++ b/activemodel/test/cases/errors_test.rb @@ -380,7 +380,7 @@ class ErrorsTest < ActiveModel::TestCase test "delete returns the deleted messages" do errors = ActiveModel::Errors.new(Person.new) errors.add(:name, :invalid) - assert_equal errors.delete(:name), ["is invalid"] + assert_equal ["is invalid"], errors.delete(:name) end test "clear removes details" do -- cgit v1.2.3