fix failing tests

not sure if the to_a fixes to get collections from activerecord is the right way
This commit is contained in:
Reinier Balt 2014-04-11 22:47:36 +02:00
parent 35cab99cea
commit 2430fcb906
5 changed files with 11 additions and 7 deletions

View file

@ -9,6 +9,10 @@ class TodoTest < ActiveSupport::TestCase
@completed = Todo.find(8).reload
end
def next_week
1.week.from_now.beginning_of_day.to_s(:db)
end
# Test loading a todo item
def test_load
assert_kind_of Todo, @not_completed1