mirror of
https://github.com/TracksApp/tracks.git
synced 2026-04-18 01:59:02 +02:00
the project description could now contain markup, like notes
also configure database_cleaner for selenium features
This commit is contained in:
parent
25204f5efa
commit
c433661048
9 changed files with 60 additions and 9 deletions
|
|
@ -1,4 +1,17 @@
|
|||
When /^I visit the "([^\"]*)" project$/ do |project_name|
|
||||
project = Project.find_by_name(project_name)
|
||||
visit project_path(project)
|
||||
@project = Project.find_by_name(project_name)
|
||||
@project.should_not be_nil
|
||||
visit project_path(@project)
|
||||
end
|
||||
|
||||
Given /^there exists a project "([^\"]*)" for user "([^\"]*)"$/ do |project_name, user_name|
|
||||
user = User.find_by_login(user_name)
|
||||
user.should_not be_nil
|
||||
user.projects.create!(:name => project_name)
|
||||
end
|
||||
|
||||
When /^I edit the project description to "([^\"]*)"$/ do |new_description|
|
||||
click_link "link_edit_project_#{@project.id}"
|
||||
fill_in "project[description]", new_description
|
||||
click_button "submit_project_#{@project.id}"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue