aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-08-02 09:45:12 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-08-02 09:45:12 -0300
commit0f8fe64c4e70698b75b0fb7e0566ded41a0573ec (patch)
treef09e7f61d7fe6dc26c5a08c2f2521359c56ed305 /activerecord/test/cases
parente73f07568998e220d4e5501456b9f4dc6ac417f1 (diff)
downloadrails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.tar.gz
rails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.tar.bz2
rails-0f8fe64c4e70698b75b0fb7e0566ded41a0573ec.zip
Use assert_nil instead of testing for equality
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/postgresql/xml_test.rb3
1 files changed, 1 insertions, 2 deletions
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