Replace Timecop with new ActiveSupport helpers

This commit is contained in:
Dan Rice 2014-05-16 13:24:40 -04:00
parent 7d7e47deff
commit d0cec167a8
13 changed files with 24 additions and 27 deletions

View file

@ -12,7 +12,7 @@ end
Given /^the date is "(.*?)"$/ do |date|
# remember to tag the scenario with @reset_time to reset this travel
Timecop.travel(date)
travel_to date
end
Given(/^I have selected the view for group by (project|context)$/) do |grouping|

View file

@ -9,5 +9,5 @@ Before('@aruba') do
end
After('@reset_time') do
Timecop.return
travel_back
end