mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-18 13:18:09 +01:00
refactor done todos view and tests
This commit is contained in:
parent
aac744e411
commit
85fc82d494
16 changed files with 141 additions and 116 deletions
|
|
@ -10,6 +10,11 @@ Given /^I am working on the mobile interface$/ do
|
|||
@mobile_interface = true
|
||||
end
|
||||
|
||||
Given /^the date is "(.*?)"$/ do |date|
|
||||
# remember to tag the scenario with @reset_time to reset this travel
|
||||
Timecop.travel(date)
|
||||
end
|
||||
|
||||
Then /the badge should show (.*)/ do |number|
|
||||
badge = find("span#badge_count").text.to_i
|
||||
badge.should == number.to_i
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue