mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-14 03:14:22 +01:00
fix #1303. Adding test for it.
This commit is contained in:
parent
23b92d853a
commit
48cc8740cb
2 changed files with 16 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue