fix failing cucumber scenario

This commit is contained in:
Reinier Balt 2013-02-28 12:47:18 +01:00
parent 1e7e925c39
commit 44c602e2ca
3 changed files with 18 additions and 10 deletions

View file

@ -9,8 +9,9 @@ When /^I delete the action "([^"]*)"$/ do |action_description|
todo.should_not be_nil
handle_js_confirm do
open_submenu_for(todo)
click_link "delete_todo_#{todo.id}"
open_submenu_for(todo) do
click_link "delete_todo_#{todo.id}"
end
end
get_confirm_text.should == "Are you sure that you want to delete the action '#{todo.description}'?"