diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-13 06:09:24 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-08-13 06:09:24 -0700 |
commit | d126a081ed840340dff5c6299d01d42aaaf32608 (patch) | |
tree | ece03db0308b940e918808d0b5857319e4e47d9f | |
parent | 620f41c9a4eee2b05986caf86e23d63d3b703a52 (diff) | |
parent | 8910f12fb4d86a58dedb36b19f4b2470337662e7 (diff) | |
download | rails-d126a081ed840340dff5c6299d01d42aaaf32608.tar.gz rails-d126a081ed840340dff5c6299d01d42aaaf32608.tar.bz2 rails-d126a081ed840340dff5c6299d01d42aaaf32608.zip |
Merge pull request #11868 from rajcybage/fix_refute
using assert_not instead of refute
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/bytea_test.rb | 6 | ||||
-rw-r--r-- | activerecord/test/cases/associations/inverse_associations_test.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/bytea_test.rb b/activerecord/test/cases/adapters/postgresql/bytea_test.rb index 489efac932..b8dd35c4c5 100644 --- a/activerecord/test/cases/adapters/postgresql/bytea_test.rb +++ b/activerecord/test/cases/adapters/postgresql/bytea_test.rb @@ -66,7 +66,7 @@ class PostgresqlByteaTest < ActiveRecord::TestCase def test_write_value data = "\u001F" record = ByteaDataType.create(payload: data) - refute record.new_record? + assert_not record.new_record? assert_equal(data, record.payload) end @@ -74,14 +74,14 @@ class PostgresqlByteaTest < ActiveRecord::TestCase data = File.read(File.join(File.dirname(__FILE__), '..', '..', '..', 'assets', 'example.log')) assert(data.size > 1) record = ByteaDataType.create(payload: data) - refute record.new_record? + assert_not record.new_record? assert_equal(data, record.payload) assert_equal(data, ByteaDataType.where(id: record.id).first.payload) end def test_write_nil record = ByteaDataType.create(payload: nil) - refute record.new_record? + assert_not record.new_record? assert_equal(nil, record.payload) assert_equal(nil, ByteaDataType.where(id: record.id).first.payload) end diff --git a/activerecord/test/cases/associations/inverse_associations_test.rb b/activerecord/test/cases/associations/inverse_associations_test.rb index 71cf1237e8..ce78332124 100644 --- a/activerecord/test/cases/associations/inverse_associations_test.rb +++ b/activerecord/test/cases/associations/inverse_associations_test.rb @@ -406,7 +406,7 @@ class InverseHasManyTests < ActiveRecord::TestCase interest = Interest.create!(man: man) man.interests.find(interest.id) - refute man.interests.loaded? + assert_not man.interests.loaded? end def test_raise_record_not_found_error_when_invalid_ids_are_passed |