mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 04:48:49 +01:00
forgot to add these files a long time ago
This commit is contained in:
parent
37a45313a0
commit
b28de88f4d
2 changed files with 11 additions and 0 deletions
7
features/step_definitions/generic_steps.rb
Normal file
7
features/step_definitions/generic_steps.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Then "the badge should show (.*)" do |number|
|
||||
badge = -1
|
||||
response.should have_xpath("//span[@id='badge_count']") do |node|
|
||||
badge = node.first.content.to_i
|
||||
end
|
||||
badge.should == number.to_i
|
||||
end
|
||||
4
features/step_definitions/project_steps.rb
Normal file
4
features/step_definitions/project_steps.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
When /^I visit the "([^\"]*)" project$/ do |project_name|
|
||||
project = Project.find_by_name(project_name)
|
||||
visit project_path(project)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue