Skip to content
Browse files

Use assert_nil instead of testing for equality

  • Loading branch information...
1 parent 367f220 commit 5cc7431f19854007886c8f26967c8bb34649f2e2 @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,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*
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 5cc7431

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