mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 09:46:11 +01:00
Replace Timecop with new ActiveSupport helpers
This commit is contained in:
parent
7d7e47deff
commit
d0cec167a8
13 changed files with 24 additions and 27 deletions
|
|
@ -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|
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ Before('@aruba') do
|
|||
end
|
||||
|
||||
After('@reset_time') do
|
||||
Timecop.return
|
||||
travel_back
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue