[rspec-users] webrat methods are undefined

David Chelimsky dchelimsky at gmail.com
Wed Jan 28 10:53:09 EST 2009

On Wed, Jan 28, 2009 at 9:15 AM, Tom Hoen <lists at ruby-forum.com> wrote:
> I am sure it is just a configuration issue, but when I use any of the
> steps in the webrat_steps.rb file, I get messages like:
>  undefined method `click_link'
> I have the webrat gem installed (0.3.4). I have the aslakhellesoy-webrat
> ( gem installed, and I have the webrat plugin installed.

I had this problem and upgraded to webrat-0.4.0 and it went away. I
think that the aslakhellesoy-webrat gem was a temporary solution to
incompatibilities and is out of date at this point.


> In my cucumber env.rb file I have the following.
>  require 'webrat' if !defined?(Webrat)
>  # Comment out the next two lines if you're not using RSpec's matchers
> (should   should_not) in your steps.
>  require 'cucumber/rails/rspec'
>  #require 'webrat/rspec-rails'
> So I am sure I have munged the setup. Any advice would be appreciated.
> Not withstanding, cucumber works, just not the webrat steps
> Best,
> Tom
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list