Skip to content

Rename utility methods #reset and #verify to reset_rr and verify_rr to avoid clashes with other methods in Cucumber's World namespace#77

Open
Empact wants to merge 2 commits into
btakita:masterfrom
Empact:master

Conversation

@Empact

@Empact Empact commented Feb 1, 2012

Copy link
Copy Markdown

e.g. Gherkin::Formatter::AnsiEscapes#reset

Specifically I ran into an exception from this line in cucumber's lib/cucumber/rb_support/rb_world.rb:

STDERR.puts failed + "WARNING: Using 'Given/When/Then' in step definitions is deprecated, use 'step' to call other steps instead:" + caller[0] + reset

Specs pass. Seems to me that these 2 methods would be better off properly namespaces, and the Gherkin AnsiEscapes methods should do the same. Thoughts?

…avoid clashes with other methods in the cucumber World namespace, e.g. Gherkin::Formatter::AnsiEscapes#reset
@mcmire

mcmire commented Mar 15, 2013

Copy link
Copy Markdown
Collaborator

Hey there. This seems like a plausible issue, however, using RR (or any mocking library, for that matter) with Cucumber is not really recommended. I realize this is late but is there (or was there) a specific reason you were doing this? Also, is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants