Html::document errors

And Joe should see a radio button representing the answer ‘OJ’

features/step_definitions/trat_steps.rb:111

  uninitialized constant HTML::Document (NameError)
  /home/joe/projects/cisv/vendor/plugins/rspec/lib/spec/matchers/method_missing.rb:6:in

method_missing' /home/joe/projects/cisv/vendor/plugins/rspec-rails/lib/spec/rails/matchers/assert_select.rb:25:insend
/home/joe/projects/cisv/vendor/plugins/rspec-rails/lib/spec/rails/matchers/assert_select.rb:25:in
matches?' /home/joe/projects/cisv/vendor/plugins/rspec/lib/spec/expectations/handler.rb:11:inhandle_matcher’
/home/joe/projects/cisv/vendor/plugins/rspec/lib/spec/expectations/extensions/kernel.rb:27:in
should' ./features/step_definitions/trat_steps.rb:113:in/should see a
radio button representing the answer ‘(.*)’/’
features/trat/taking/answer_sheet.feature:53:in `And Joe should
see a radio button representing the answer ‘OJ’’

Any ideas? Where’s HTML::Document supposed to be defined?

Joe

Oh, latest version of rspec and rspec-rails installed as a plugin.

On Tue, Jun 23, 2009 at 5:43 PM, Joe Van D.[email protected] wrote:

 /home/joe/projects/cisv/vendor/plugins/rspec-rails/lib/spec/rails/matchers/assert_select.rb:25:in

`matches?’

This is using rspec’s have_tag matcher. I’d strongly recommend
installing webrat and using it’s have_selector matcher instead.

Cheers,
David