From bf9996b25d4a09f8306d023726df3f321c5b4a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 11 Aug 2013 10:06:42 +0200 Subject: [PATCH] lets see if page.should have_no_css actually waits for the element to disappear --- features/step_definitions/aspects_steps.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb index e1653574c..2d13f6abe 100644 --- a/features/step_definitions/aspects_steps.rb +++ b/features/step_definitions/aspects_steps.rb @@ -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