mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 06:34:07 +01:00
get some further scenarios for adding todos to several pages
one is still failing, will get to that
This commit is contained in:
parent
ab2e51a51a
commit
8cbe077784
8 changed files with 118 additions and 32 deletions
|
|
@ -34,6 +34,11 @@ Given /^I have no projects$/ do
|
|||
Project.delete_all
|
||||
end
|
||||
|
||||
Given /^I have a hidden project called "([^"]*)"$/ do |project_name|
|
||||
@project = @current_user.projects.create!(:name => 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue