get all scenario's running again, first pass.

This commit is contained in:
Reinier Balt 2013-03-17 15:41:36 +01:00
parent ede898120c
commit 0a9755c8a3
27 changed files with 90 additions and 90 deletions

View file

@ -74,9 +74,9 @@ end
Then /^I should (see|not see) empty message for (todo|completed todo|deferred todo)s of context/ do |visible, state|
css = "error"
css = "div#c#{@context.id}empty-nd" if state == "todo"
css = "div#empty-d" if state == "completed todo"
css = "div#tickler-empty-nd" if state == "deferred todo"
css = "div#c#{@context.id}-empty-d" if state == "todo"
css = "div#completed_container-empty-d" if state == "completed todo"
css = "div#deferred_pending_container-empty-d" if state == "deferred todo"
page.send(visible=="see" ? :should : :should_not, have_css(css, :visible=>true))
end