aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2015-03-22 20:25:07 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2015-03-22 20:25:27 -0300
commita3f030686bbcfb215ae5635e1c7a92d0346db732 (patch)
tree0e02c339a2122de976bb6387ebe477ba0d480fa6 /activemodel
parent70844212fda598b20c9b170706b7ad389ac43de8 (diff)
downloadrails-a3f030686bbcfb215ae5635e1c7a92d0346db732.tar.gz
rails-a3f030686bbcfb215ae5635e1c7a92d0346db732.tar.bz2
rails-a3f030686bbcfb215ae5635e1c7a92d0346db732.zip
Fix arguments order on assertion
The expected value comes first. Related to #19465.
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/test/cases/errors_test.rb2
1 files changed, 1 insertions, 1 deletions
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