Permalink
Browse files

update selector for test, use css instead of xpath

  • Loading branch information...
1 parent fb2c2e0 commit 6a159dfc74467aa9070f4438813b855c6b5a7f25 @zzak committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/glorify_spec.rb
@@ -37,7 +37,7 @@
end
get('/')
assert ok?
- refute_empty Nokogiri::HTML(body).search("//div[@class = 'highlight']/pre")
+ refute_empty Nokogiri::HTML(body).search("pre.highlight")
end
it "should parse with a helper" do
@@ -52,7 +52,7 @@
end
get('/')
assert ok?
- refute_empty Nokogiri::HTML(body).search("//div[@class = 'highlight']/pre")
+ refute_empty Nokogiri::HTML(body).search("pre.highlight")
end
it "should include a valid css helper for pygments" do

0 comments on commit 6a159df

Please sign in to comment.