Sha256: aa1d80df1219d38ed0f7ba11ec96dad3b479a8d047f3aa6fa7e68aaace15d1c1
Contents?: true
Size: 858 Bytes
Versions: 3
Compression:
Stored size: 858 Bytes
Contents
Given /^a feature file on the project "([^"]*)" with the contents:$/ do |project, contents| create_feature(project, "feature1.feature", contents) end Given /^I visit the project page for "([^"]*)"$/ do |project| visit "/projects/#{project}" end Given /^(\d+) projects exist$/ do |number_of_projects| number_of_projects.to_i.times do |project_number| project(project_number + 1) end end Then /^I see a link to the feature "([^"]*)"$/ do |feature| page.should have_link feature end Then /^I can switch to the (\d).+ project$/ do |project_number| select project_number, :from => 'projects' #This is needed because there seems to be a bug in the chrome driver. #The first time this is called, we get the old url, and the second time we get the new url. page.current_url page.current_url.end_with?(project_number).should be_true end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wally-0.0.44 | features/step_definitions/projects_steps.rb |
wally-0.0.43 | features/step_definitions/projects_steps.rb |
wally-0.0.42 | features/step_definitions/projects_steps.rb |