Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rspec_on_rails.rb
Instance Method Summary collapse
Instance Method Details
#should_have_tag(*opts) ⇒ Object
78 79 80 81 82 83 84 85 |
# File 'lib/rspec_on_rails.rb', line 78 def should_have_tag(*opts) opts = opts.size > 1 ? opts.last.merge({ :tag => opts.first.to_s }) : opts.first begin HTML::Document.new(self).find(opts).should_not_be_nil rescue self.should_include opts.inspect end end |