another attempt at #1150 and fix some failing cucumber scenarios

This commit is contained in:
Reinier Balt 2011-04-19 16:40:55 +02:00
parent 98d8712229
commit af4489ff6e
11 changed files with 82 additions and 86 deletions

View file

@ -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