Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Exclude stubbed classes from subclasses after teardown #1570
Exclude stubbed classes from subclasses after teardown #1570
Changes from 20 commits
62580be
d3f54fd
efd11e7
57cc8e9
4068c21
6dc7dc7
dc02871
a3caeab
3007ee7
0ba2dcd
70b4503
f4a1886
275c69d
18683bf
5688b2a
c3b17ce
43ce7c7
45eb65f
093f2ed
1da3cfa
04a59f1
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I took
RSpec::Mocks::MarshalExtension
for example.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.
Ok to move this line into
enable!
?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.
I'm not sure if it's a problem but now we can do
RSpec::Mocks::ExcludeStubbedClassesFromSubclasses.excluded_subclasses
withoutExcludeStubbedClassesFromSubclasses.enable!
first. If we move this line toenable!
, it will raise an error.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.
As you wish, I can do :
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.
It slipped my mind, isn’t it possible to squash that so that rescue is on the map itself?
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.
Ah, nevermind, Ruby 1.8 probably doesn’t support that. Do you mind making a note to indicate that?
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.
I removed the comment because the CI was failing because of that (I don't have the same behavior locally with the same version of Ruby/Rubocop).
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.
This is in a few places. Might be it belongs to
enable!
, too?