fix #1303. Adding test for it.

This commit is contained in:
Reinier Balt 2012-07-11 16:25:24 +02:00
parent 23b92d853a
commit 48cc8740cb
2 changed files with 16 additions and 0 deletions

View file

@ -100,6 +100,14 @@ Given /^I have a project "([^\"]*)" with (.*) notes?$/ do |project_name, num|
end
end
Given /^the default tags for "(.*?)" are "(.*?)"$/ do |project_name, default_tags|
project = @current_user.projects.find_by_name(project_name)
project.should_not be_nil
project.default_tags = default_tags
project.save!
end
When /^I open the project edit form$/ do
click_link "link_edit_project_#{@project.id}"
page.should have_css("button#submit_project_#{@project.id}", :visible => true)