From 0f8fe64c4e70698b75b0fb7e0566ded41a0573ec Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 2 Aug 2013 09:45:12 -0300 Subject: Use assert_nil instead of testing for equality --- activerecord/test/cases/adapters/postgresql/xml_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord/test/cases') 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 -- cgit v1.2.3