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:
commit
a429993742
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue