Sha256: 2da8ab92159cb38d66784885fafb0e95c8ddc5568ebb385b18d209a45753c3ea

Contents?: true

Size: 859 Bytes

Versions: 5

Compression:

Stored size: 859 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

5 entries across 5 versions & 2 rubygems

Version Path
nuker-2.0.0 features/step_definitions/projects_steps.rb
nuker-1.0.0 features/step_definitions/projects_steps.rb
wally-0.0.47 features/step_definitions/projects_steps.rb
wally-0.0.46 features/step_definitions/projects_steps.rb
wally-0.0.45 features/step_definitions/projects_steps.rb