Today I made some more steps using RSpec. My new steps involved
Webrat, a handy library for acceptance tests, which depends on
Nokogiri.
The installation guide of webrat only mentioned to require webrat in your helper.
But I got the following error
NameError: uninitialized constant Nokogiri::CSS::XML
After a I while figured out, that you first have to require nokogiri explicitly.
So my steps for webrat are now beginning with:
require 'nokogiri'
require "webrat/rails"
steps_for :webrat do
When "visits '$link'" do |link|
visits link
end
...
To check your gem versions against mine, here an extract of my gem list:
Rails (2.2.2)
webrat (0.3.2)
nokogiri (1.1.0)
libxml-ruby (0.9.7)
libxslt-ruby (0.9.1)