Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

then show me the emails

#18

There seems to be an issue with new cucumber / webrat and this. I was getting

Then show me the emails
undefined method `open_in_browser' for #<Cucumber::Rails::World:0x21f1f74>

and got it working with the following step redefinition:

Then(/^show me the emails?$/) do
  extend Webrat::SaveAndOpenPage
  save_and_open_emails
end

This dependency probably wants putting into pickle as an extend or require somewhere?

Reported by Nicholas Rutherford · January 13th, 2010 @ 04:45 PM

State: resolved
Milestone: none
Assigned to: Ian White Ian White

Activity

  1. Jorge Dias
    Jorge Dias

    I've found that if you include the webrat module inside Pickle::Email, it works.
    I've done this in support/email.rb

    require 'pickle/email'

    Pickle::Email.module_eval do
    include Webrat::SaveAndOpenPage end

    March 2nd, 2010 @ 08:41 PM

  2. Ian White
    Ian White

    Thanks for this. I'll need to make it support capybara as well, but that shouldn;t be too hard

    April 5th, 2010 @ 08:55 PM

  3. Ian White

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.