mirror of
https://github.com/github/rails.git
synced 2026-01-29 16:28:09 -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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user