Permalink
Browse files

Fixed SQL syntax for postgresql

  • Loading branch information...
1 parent 5de6ef8 commit eca26254724a4aa2cb228a3d31cf8344cd32e42a @chancancode chancancode committed Jul 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/serialized_attribute_test.rb
@@ -106,7 +106,7 @@ def test_json_db_null
# On 4.0, re-saving a row with a database NULL will turn that into a JSON
# "null"
- assert_equal 1, Topic.where('content = "null"').count
+ assert_equal 1, Topic.where("content = 'null'").count
end
def test_serialized_attribute_declared_in_subclass

0 comments on commit eca2625

Please sign in to comment.