then show me the emails
Reported by Nicholas Rutherford | January 13th, 2010 @ 04:45 PM
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?
Comments and changes to this ticket
-
Jorge Dias March 2nd, 2010 @ 08:41 PM
I've found that if you include the webrat module inside Pickle::Email, it works.
I've done this in support/email.rbrequire 'pickle/email'
Pickle::Email.module_eval do
include Webrat::SaveAndOpenPage end -
Ian White April 5th, 2010 @ 08:55 PM
Thanks for this. I'll need to make it support capybara as well, but that shouldn;t be too hard
-
Ian White April 5th, 2010 @ 09:10 PM
- State changed from new to resolved
(from [c4f3db0c573cd992067c34cdff007a55b301da6e]) 'Then show me the email' works as expected now [#18 state:resolved] http://github.com/ianwhite/pickle/commit/c4f3db0c573cd992067c34cdff...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Assign tickets to <b>Ian White</b>, so I get notified
People watching this ticket
Referenced by
- 18 then show me the emails (from [c4f3db0c573cd992067c34cdff007a55b301da6e]) 'Then s...