-
Notifications
You must be signed in to change notification settings - Fork 219
undefined method `each_pair' for 3:Fixnum (NoMethodError #76
Comments
It looks like ActiveSupport::Helper::TagHelper (which defines #tag) has been included at the Object level, overwriting Gherkin's internal #tag method. It's definitely not the gherkin code that does this inclusion, so I'm going to assume it's your own code, Rails or possibly one of your gems/plugins that does this. Happy bug hunting. |
one more vote for this bug :) |
This is not a bug with cucumber. You will get this error if you are including ActiveSupport::Helper::TagHelper in controller or in model . |
And what should I do? |
Look into your code base including plugins if anywhere you are including ActiveSupport::Helper::TagHelper. Note that ActiveSupport::Helper::TagHelper is also used by other modules like ActionView helpers. So first step would be to remove any ActionView component from controller or model. |
Thank you! But do solution exist in case I needed to use ActiveSupport::Helper::TagHelper in controller? |
I'm closing this bug, since it's not a gherkin bug. See my first comment. Find the code that includes TagHelper in Object and get rid of it. |
Yes, you are right. Reason is including TagHelper right in Object (outside class definition). Thanks! |
This include was causing cucumber to crash because it was overwriting the "tag" method on top-level, causing gherkin to jump awkwardly to action_view. More information about this problem here: cucumber/gherkin#76
For more details regarding this error please see http://groups.google.com/group/cukes/browse_thread/thread/627caa1c473b6abc/ec838167abe90ad0?show_docid=ec838167abe90ad0#
The text was updated successfully, but these errors were encountered: