diff options
author | Xavier Noria <fxn@hashref.com> | 2012-10-31 15:53:57 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-10-31 15:58:42 +0100 |
commit | f32f150e45f3dc3ccbd0adc1c91e6144b3cf1384 (patch) | |
tree | 7eb78d5483a2bc1ac7a54fc45be46ff1af596cb4 /activerecord | |
parent | f5f57e2e34a162c0b68c9e16a6951c2462e1f240 (diff) | |
download | rails-f32f150e45f3dc3ccbd0adc1c91e6144b3cf1384.tar.gz rails-f32f150e45f3dc3ccbd0adc1c91e6144b3cf1384.tar.bz2 rails-f32f150e45f3dc3ccbd0adc1c91e6144b3cf1384.zip |
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.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/persistence_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |