Skip to content

Commit

Permalink
Use assert_nil instead of testing for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Aug 2, 2013
1 parent 367f220 commit 5cc7431
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion activerecord/CHANGELOG.md
@@ -1,7 +1,7 @@
## unreleased ##

* 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*

Expand Down
3 changes: 1 addition & 2 deletions activerecord/test/cases/adapters/postgresql/xml_test.rb
Expand Up @@ -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 5cc7431

Please sign in to comment.