Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

also assign nil in dirty nullable_datetime test. #10237

  • Loading branch information...
commit fb2d62d0cd56edbba7d7628d9329608228f1e1dd 1 parent 07acf7b
@senny senny authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 activerecord/test/cases/dirty_test.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.