From f32f150e45f3dc3ccbd0adc1c91e6144b3cf1384 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 31 Oct 2012 15:53:57 +0100 Subject: relaxes assertion This method returns the status of the operation, but as we generally do in the code base it does not commit to any particular exact value. Hence, we do not have to check for a singleton, because if the implementation changes and returns some other true value the test should pass. --- activerecord/test/cases/persistence_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases/persistence_test.rb') diff --git a/activerecord/test/cases/persistence_test.rb b/activerecord/test/cases/persistence_test.rb index be164afe9f..a35cb3c4a5 100644 --- a/activerecord/test/cases/persistence_test.rb +++ b/activerecord/test/cases/persistence_test.rb @@ -516,7 +516,7 @@ class PersistencesTest < ActiveRecord::TestCase def test_update_column_should_return_correct_value developer = Developer.find(1) return_value = developer.update_column(:salary, 80001) - assert_equal return_value, true + assert return_value end def test_update_attributes -- cgit v1.2.3