Replace User#time with UserTime#time

This commit is contained in:
Matt Rogers 2013-07-30 16:18:06 -05:00
parent 8512e8db3b
commit 96777c2e3a
13 changed files with 44 additions and 27 deletions

View file

@ -5,7 +5,7 @@ end
Given /^I have an outdated project "([^"]*)" with (\d+) todos$/ do |project_name, num_todos|
step "I have a project \"#{project_name}\" with #{num_todos} todos"
@project = @current_user.projects.where(:name => project_name).first
@project.last_reviewed = @current_user.time - @current_user.prefs.review_period.days-1
@project.last_reviewed = UserTime.new(@current_user).time - @current_user.prefs.review_period.days-1
@project.save
end