Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add spec to check that original Nokogiri::CSS::SyntaxError being is r…
…aised
  • Loading branch information
Tom ten Thij committed Dec 2, 2009
1 parent 44f0324 commit 2aeb688
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/public/click_link_spec.rb
Expand Up @@ -423,6 +423,11 @@
click_link_within "//div", "Link"
end

it "should raise the css syntax error if the selector is not valid" do
with_html "<html/>"
lambda { click_link_within "--", "Link" }.should raise_error(Nokogiri::CSS::SyntaxError)
end

it "should not make request when link is local anchor" do
with_html <<-HTML
<html>
Expand Down

0 comments on commit 2aeb688

Please sign in to comment.