Skip to content
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

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Empact
Copy link

@Empact Empact commented Feb 1, 2012

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
Copy link
Collaborator

mcmire commented Mar 15, 2013

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