Class: Hpricot::Elem
- Inherits:
-
Object
- Object
- Hpricot::Elem
- Defined in:
- lib/rspec_hpricot_matchers.rb
Overview
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