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