mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
8 lines
203 B
Ruby
8 lines
203 B
Ruby
|
|
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
|