Default project should be empty

This commit is contained in:
Matteo Giaccone 2015-08-10 07:36:35 +01:00
parent 8a378aa2c4
commit 336f19c4fe
3 changed files with 13 additions and 1 deletions

View file

@ -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