try fixing timing issue of tagging scenario

This commit is contained in:
Reinier Balt 2013-04-22 11:17:57 +02:00
parent a987ff3727
commit b57c63abdb
2 changed files with 4 additions and 7 deletions

View file

@ -138,10 +138,7 @@ Then /^the tag field in the new todo form should be "([^"]*)"$/ do |tag_list|
end
Then /^the tags of "([^"]*)" should be "([^"]*)"$/ do |todo_description, tag_list|
todo = @current_user.todos.where(:description => todo_description).first
todo.should_not be_nil
todo.tag_list.should == tag_list
find_todo(todo_description).tag_list.should == tag_list
end
Then /^I should see "([^"]*)" in the completed section of the mobile site$/ do |desc|