fix failing test

This commit is contained in:
Reinier Balt 2014-01-03 20:20:09 +01:00
parent f42a5d3bdd
commit d5f9f8b240
8 changed files with 12 additions and 14 deletions

View file

@ -94,7 +94,7 @@ end
Then /^I should (see|not see) empty message for (active|hidden) contexts$/ do |visible, state|
box = (state=='active') ? "div#active-contexts-empty-nd" : "div#hidden-contexts-empty-nd"
elem = page.find(box)
elem = page.find(box, :visible => false)
elem.should_not be_nil
elem.send(visible=="see" ? "should" : "should_not", be_visible)