lets see if page.should have_no_css actually waits for the element to disappear

This commit is contained in:
Jonne Haß 2013-08-11 10:06:42 +02:00
parent f4169d7f30
commit bf9996b25d

View file

@ -32,7 +32,7 @@ end
Then /^I should see "([^"]*)" aspect unselected$/ do |aspect_name|
aspect = @me.aspects.where(:name => aspect_name).first
within("#aspects_list") do
page.should_not have_css "li[data-aspect_id='#{aspect.id}'] .selected"
page.should have_no_css "li[data-aspect_id='#{aspect.id}'] .selected"
end
end