forked from nickh/rspec_tag_matchers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to nokogiri, fail everywhere.
- Loading branch information
Showing
1 changed file
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
require 'rubygems' | ||
require 'hpricot' | ||
require 'nokogiri' | ||
|
||
require 'rspec_hpricot_matchers/have_tag' | ||
require 'rspec_hpricot_matchers/have_link' | ||
|
||
# evil hack to duck-type CgiResponse so that nested shoulds can use | ||
# +rspec_on_rails+ matchers without remembering to call to_s on it | ||
# | ||
# e.g. | ||
# | ||
# response.should have_tag("li") do |ul| | ||
# ul.should have_text("List Item") # with hack | ||
# ul.to_s.should have_text("List Item") # without hack | ||
# end | ||
class Hpricot::Elem | ||
alias body to_s | ||
end |