Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
update selector for test, use css instead of xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Mar 19, 2013
1 parent fb2c2e0 commit 6a159df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/glorify_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6a159df

Please sign in to comment.