Skip to content

Commit

Permalink
also assign nil in dirty nullable_datetime test. rails#10237
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Apr 22, 2013
1 parent 07acf7b commit fb2d62d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions activerecord/test/cases/dirty_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fb2d62d

Please sign in to comment.