-
-
Notifications
You must be signed in to change notification settings - Fork 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
Prevent collisions on let(:name) and let(:method_name) #2467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -0,0 +1,57 @@ | |||
if __FILE__ =~ /^snippets/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that we have no support for snippets in main
, the code to run them is in rails-6-1-dev
only.
But if CI passes on rails-6-1-dev
, the patch should most possibly work for main
, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it easy-ish to backport that support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be easy. Looks like cherry-picking 040fecc and accepting the removed lines from Gemfile
should do it.
Snippet is a self-contained example that defines the configuration, Rails project code and specs to run. Snippets: - allow for clean separation between different snippets - work quite fast - reuse the already installed gems that specs and Cukes use - do not litter - do not depend on other parts of the build In theory snippets retain the ability to use generators and arbitrary commands, but it makes the case under test less evident. Co-authored-by: Benoit Tigeot <benoit@hopsandfork.com>
Prevent collisions on let(:name) and let(:method_name)
094b6f1
to
073daad
Compare
Cherry-picked along with Changelog changes. Let's see if snippets are being run. |
Nice
|
This is #2461 for main