fix regressions

This commit is contained in:
Reinier Balt 2013-04-19 20:00:32 +02:00
parent d732779e14
commit a8e426a2cd
8 changed files with 24 additions and 16 deletions

View file

@ -48,7 +48,7 @@ Then(/^I should (not see|see) "([^"]*)" in the deferred container$/) do |visible
end
Then(/^I should (not see|see) "([^"]*)" in the action container$/) do |visible, todo_description|
check_xpath_visibility(visible, todo_in_container_xpath(@source_view.to_s, find_todo(todo_description)))
check_xpath_visibility(visible, todo_in_container_xpath(find_todo(todo_description), @source_view.to_sym))
end
####### Project #######

View file

@ -142,7 +142,7 @@ Given /^I have (\d+) completed todos in project "([^"]*)" in context "([^"]*)" w
end
Given(/^I have ([0-9]+) completed todos in context "([^"]*)"$/) do |count, context_name|
find_context(context_name)
context = find_context(context_name)
count.to_i.downto 1 do |i|
todo = @current_user.todos.create!(:context_id => context.id, :description => "todo #{i}")