Skip to content

Commit

Permalink
switch to nokogiri, fail everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
pd committed Nov 27, 2008
1 parent 5287a40 commit abfb459
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions lib/rspec_hpricot_matchers.rb
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

0 comments on commit abfb459

Please sign in to comment.