Forum: RSpec Cucumber - wierd button pressing error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
kwe (Guest)
on 2009-05-05 01:43
(Received via mailing list)
I wonder if anyone has some clues as to what is happening in the
following..

Output from running the feature..

Quote>>
Scenario: Create an Order

Given I'm viewing the Rubber Duck product
When I press "<span>Add to cart</span>"
Then I should see "<span>Rubber Duck</span>"
When I press "<span>Checkout</span>"
Then I should see "<span>Checkout</span>"
When I fill in "<span>order_name</span>" with "<span>Kevin Evans</
span>"
And I fill in "<span>order_email</span>" with
"<span>removed_email_address@domain.invalid</span>"
And I fill in "<span>order_spinach</span>" with "<span>55555</span>"
And I press "<span>Submit Order</span>"
uninitialized constant ActionController::AbstractRequest (NameError)
(eval):2:in `/^I press "(.*)"$/'
/Users/kwe/Sites/newtoys/features/cart.feature:44:in `And I press
"Submit Order"'
Then I should see "<span>Thankyou for your order</span>"

Specifically, the

And I press "<span>Submit Order</span>"
uninitialized constant ActionController::AbstractRequest (NameError)
(eval):2:in `/^I press "(.*)"$/'

The other 'When I press" actions work fine?!
Mischa F. (Guest)
on 2009-05-07 01:46
(Received via mailing list)
Hi - I vaguely remember having a similar problem.
>From what I remember, this has to do with upgrading to rails 2.3.2 and
having older versions of gems / plugins (like webrat, nokogiri,
resources_controller, resource_controller etc)

http://blog.adambair.com/post/89557713/cucumber-we...

Also note that you may not have to include "<span>" in your button
names.
You may be able to just do "When I press "submit order"" and webrat
usually
finds it.

Best,

M
This topic is locked and can not be replied to.