Permalink
Browse files

Merge pull request #25371 from kamipo/remove_outdated_comment

Remove outdated comments [ci skip]
  • Loading branch information...
eileencodes committed Jun 12, 2016
2 parents 39fa2c5 + 5deb44d commit 2bfb3207de283773bd3c054375fcc253038610aa
Showing with 0 additions and 12 deletions.
  1. +0 −12 activerecord/test/cases/multiparameter_attributes_test.rb
@@ -18,53 +18,41 @@ def test_multiparameter_attributes_on_date_with_empty_year
attributes = { "last_read(1i)" => "", "last_read(2i)" => "6", "last_read(3i)" => "24" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end
def test_multiparameter_attributes_on_date_with_empty_month
attributes = { "last_read(1i)" => "2004", "last_read(2i)" => "", "last_read(3i)" => "24" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end
def test_multiparameter_attributes_on_date_with_empty_day
attributes = { "last_read(1i)" => "2004", "last_read(2i)" => "6", "last_read(3i)" => "" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end
def test_multiparameter_attributes_on_date_with_empty_day_and_year
attributes = { "last_read(1i)" => "", "last_read(2i)" => "6", "last_read(3i)" => "" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end
def test_multiparameter_attributes_on_date_with_empty_day_and_month
attributes = { "last_read(1i)" => "2004", "last_read(2i)" => "", "last_read(3i)" => "" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end
def test_multiparameter_attributes_on_date_with_empty_year_and_month
attributes = { "last_read(1i)" => "", "last_read(2i)" => "", "last_read(3i)" => "24" }
topic = Topic.find(1)
topic.attributes = attributes
# note that extra #to_date call allows test to pass for Oracle, which
# treats dates/times the same
assert_nil topic.last_read
end

0 comments on commit 2bfb320

Please sign in to comment.