mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-25 18:26:10 +01:00
Default project should be empty
This commit is contained in:
parent
8a378aa2c4
commit
336f19c4fe
3 changed files with 13 additions and 1 deletions
|
|
@ -162,3 +162,8 @@ Then /^I should (see|not see) the empty tickler message$/ do |see|
|
|||
elem = find("div#no_todos_in_view")
|
||||
expect(elem).send(see=="see" ? :to : :to_not, be_visible)
|
||||
end
|
||||
|
||||
Then /^I should see the todo "([^"]*)" with project name "([^"]*)"$/ do |todo_description, project_name|
|
||||
todo = @current_user.todos.where(:description => todo_description).first
|
||||
expect(todo.project.name).to eq(project_name)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue