forgot to add these files a long time ago

This commit is contained in:
Reinier Balt 2009-08-05 16:28:06 +02:00
parent 37a45313a0
commit b28de88f4d
2 changed files with 11 additions and 0 deletions

View 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

View 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