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

Workaround test isolation failure with Task.attr_protected :starting.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2007-05-29 08:29:33 +00:00
parent 690d6e204a
commit ae242b0d23

View file

@ -5,7 +5,11 @@ require 'fixtures/task'
class DateTimeTest < Test::Unit::TestCase
def test_saves_both_date_and_time
now = 200.years.ago.to_datetime
task = Task.create!(:starting => now)
task = Task.new
task.starting = now
task.save!
assert_equal now, Task.find(task.id).starting
end