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

Extract method declaration regexp for assert_method into a constant #10194

Conversation

pabloh
Copy link
Contributor

@pabloh pabloh commented Apr 12, 2013

No description provided.

@@ -2,6 +2,8 @@ module Rails
module Generators
module Testing
module Assertions
METHOD_DECLARATION_REGEXP = /(\s+)def #{method}(\(.+\))?(.*?)\n\1end/m

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that _REGEXP doesn't need to be part of the constant name, wdyt?

carlosantoniodasilva added a commit that referenced this pull request Apr 12, 2013
…sting_assertion

Extract method declaration regexp for assert_method into a constant
@carlosantoniodasilva carlosantoniodasilva merged commit 81f2433 into rails:master Apr 12, 2013
carlosantoniodasilva added a commit that referenced this pull request Apr 13, 2013
…ators_testing_assertion"

This reverts commit 81f2433, reversing
changes made to c7673b0.
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.

None yet

2 participants