diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-02 09:45:12 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-08-02 09:45:12 -0300 |
commit | 0f8fe64c4e70698b75b0fb7e0566ded41a0573ec (patch) | |
tree | f09e7f61d7fe6dc26c5a08c2f2521359c56ed305 /activerecord | |
parent | e73f07568998e220d4e5501456b9f4dc6ac417f1 (diff) | |
download | rails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.tar.gz rails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.tar.bz2 rails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.zip |
Use assert_nil instead of testing for equality
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 2 | ||||
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/xml_test.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 449d94e0eb..74f2b2287f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,5 @@ * Removed redundant override of `xml` column definition for PG, - in order to use `xml` column type instead of `text` + in order to use `xml` column type instead of `text`. *Paul Nikitochkin*, *Michael Nikitochkin* diff --git a/activerecord/test/cases/adapters/postgresql/xml_test.rb b/activerecord/test/cases/adapters/postgresql/xml_test.rb index 974fbabd58..bf14b378d8 100644 --- a/activerecord/test/cases/adapters/postgresql/xml_test.rb +++ b/activerecord/test/cases/adapters/postgresql/xml_test.rb @@ -33,7 +33,6 @@ class PostgresqlXMLTest < ActiveRecord::TestCase def test_null_xml @connection.execute %q|insert into xml_data_type (payload) VALUES(null)| - x = XmlDataType.first - assert_equal(nil, x.payload) + assert_nil XmlDataType.first.payload end end |