Permalink
Browse files

also assign nil in dirty nullable_datetime test. #10237

  • Loading branch information...
1 parent 07acf7b commit fb2d62d0cd56edbba7d7628d9329608228f1e1dd @senny senny committed Apr 22, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 activerecord/test/cases/dirty_test.rb
@@ -213,9 +213,11 @@ def test_nullable_datetime_not_marked_as_changed_if_new_value_is_blank
topic = target.create
assert_nil topic.written_on
- topic.written_on = ""
- assert_nil topic.written_on
- assert !topic.written_on_changed?
+ ["", nil].each do |value|
+ topic.written_on = value
+ assert_nil topic.written_on
+ assert !topic.written_on_changed?
+ end
end
end

0 comments on commit fb2d62d

Please sign in to comment.