mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 10:30:15 +01:00
another attempt at #1150 and fix some failing cucumber scenarios
This commit is contained in:
parent
98d8712229
commit
af4489ff6e
11 changed files with 82 additions and 86 deletions
|
|
@ -46,16 +46,6 @@ Given /^I have a hidden project called "([^"]*)"$/ do |project_name|
|
|||
@project.hide!
|
||||
end
|
||||
|
||||
When /^I visit the "([^\"]*)" project$/ do |project_name|
|
||||
@project = Project.find_by_name(project_name)
|
||||
@project.should_not be_nil
|
||||
visit project_path(@project)
|
||||
end
|
||||
|
||||
When /^I visit the project page for "([^"]*)"$/ do |project_name|
|
||||
When "I visit the \"#{project_name}\" project"
|
||||
end
|
||||
|
||||
When /^I edit the project description to "([^\"]*)"$/ do |new_description|
|
||||
click_link "link_edit_project_#{@project.id}"
|
||||
fill_in "project[description]", :with => new_description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue