From 6dd98ac79b24e8475fcf9407fca786ebe47d051c Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Fri, 15 Feb 2013 23:23:48 +0100 Subject: [PATCH] Empty tags are invisible according to Selenium. Huh. --- lib/capybara/spec/session/has_css_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/capybara/spec/session/has_css_spec.rb b/lib/capybara/spec/session/has_css_spec.rb index 5b252666..ac46fc2d 100644 --- a/lib/capybara/spec/session/has_css_spec.rb +++ b/lib/capybara/spec/session/has_css_spec.rb @@ -70,7 +70,7 @@ Capybara::SpecHelper.spec '#has_css?' do it "should be false when content occurs more times than given" do @session.should_not have_css("h2.head", :maximum => 4) # edge case - @session.should_not have_css("h2", :maximum => 6) + @session.should_not have_css("h2", :maximum => 3) @session.should_not have_css("p", :maximum => 1) end @@ -184,7 +184,7 @@ Capybara::SpecHelper.spec '#has_no_css?' do it "should be true when content occurs more times than given" do @session.should have_no_css("h2.head", :maximum => 4) # edge case - @session.should have_no_css("h2", :maximum => 6) + @session.should have_no_css("h2", :maximum => 3) @session.should have_no_css("p", :maximum => 1) end