1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #10295 from senny/10237_dirty_with_nullable_datetime

Also assign nil in dirty nullable_datetime test. Closes #10237
This commit is contained in:
Carlos Antonio da Silva 2013-04-22 05:24:00 -07:00
commit a429993742

View file

@ -213,9 +213,11 @@ class DirtyTest < ActiveRecord::TestCase
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