Skip to content
Browse files

Use assert_nil instead of testing for equality

  • Loading branch information...
1 parent e73f075 commit 0f8fe64c4e70698b75b0fb7e0566ded41a0573ec @carlosantoniodasilva carlosantoniodasilva committed Aug 2, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −1 activerecord/CHANGELOG.md
  2. +1 −2 activerecord/test/cases/adapters/postgresql/xml_test.rb
View
2 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*
View
3 activerecord/test/cases/adapters/postgresql/xml_test.rb
@@ -33,7 +33,6 @@ def test_column
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

0 comments on commit 0f8fe64

Please sign in to comment.
Something went wrong with that request. Please try again.