-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to solve problem wrong number of arguments? #219
Comments
Rails' action_view/helpers/form_tag_helper.rb:162 is calling the For some strange reason, this resolves to the This means that the The If you remove that include the problem should go away. |
I have a step which append_row_to_table_tag my custom helper method def append_row_to_table_tag(*arg) what is to be done with this? |
I have a fix for this: diff --git a/lib/cucumber/rb_support/rb_world.rb b/lib/cucumber/rb_support/rb_world.rb
index 9cbc097..3ddae1c 100644
--- a/lib/cucumber/rb_support/rb_world.rb
+++ b/lib/cucumber/rb_support/rb_world.rb
@@ -1,10 +1,7 @@
-require 'gherkin/formatter/ansi_escapes'
-
module Cucumber
module RbSupport
# All steps are run in the context of an object that extends this module.
module RbWorld
- include Gherkin::Formatter::AnsiEscapes
class << self
def alias_adverb(adverb)
@@ -21,7 +18,7 @@ module Cucumber
attr_writer :__cucumber_step_mother, :__natural_language
def __cucumber_invoke(name, multiline_argument=nil) #:nodoc:
- STDERR.puts failed + "WARNING: Using 'Given/When/Then' in step definitions is deprecated, use 'step' to call other steps instead:" + caller[0] + reset
+ STDERR.puts "\e[31mWARNING: Using 'Given/When/Then' in step definitions is deprecated, use 'step' to call other steps instead:#{caller[0]}\e[0m"
@__cucumber_step_mother.invoke(name, multiline_argument)
end
@@ -46,7 +43,7 @@ module Cucumber
end
def announce(*messages)
- STDERR.puts failed + "WARNING: #announce is deprecated. Use #puts instead:" + caller[0] + reset
+ STDERR.puts "\e[31mWARNING: #announce is deprecated. Use #puts instead:#{caller[0]}\e[0m"
puts(*messages)
end |
I edit lib/cucumber/rb_support/rb_world.rb
But still get this error or may bei do not understand you?
|
Sorry, I edit wrong version of cucumber file. So, i correct right version and now gives that "tag" method not found. I don't know what do! |
If you don't know how to apply the changes yourself I'm afraid you have to wait for the next release. |
May be prompt me where too need change? I am able to get around of problem, but i wanted in competent way. OK, I will attempt something else.. Thanks for help!! |
This is normally if i |
The diff I added above was just a quick reminder to myself about how to fix this - I didn't have git access on the machine I tried it out on... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi again!!
When run cucumber, I get this error(i will get full trace)
My gemfile looks like this:
How i can resolve this problem? Please help me. Google not get right result for me//
The text was updated successfully, but these errors were encountered: