Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Add duplicate_with for RSpec Example #2098

Merged
merged 1 commit into from
Oct 23, 2015
Merged

Add duplicate_with for RSpec Example #2098

merged 1 commit into from
Oct 23, 2015

Conversation

bootstraponline
Copy link
Contributor

This is the last of the new APIs as discussed in #2094

@JonRowe
Copy link
Member

JonRowe commented Oct 23, 2015

I love how simple this is!

JonRowe added a commit that referenced this pull request Oct 23, 2015
@JonRowe JonRowe merged commit 72c4138 into rspec:master Oct 23, 2015
JonRowe added a commit that referenced this pull request Oct 23, 2015
@bootstraponline bootstraponline deleted the example_duplicate_with branch October 23, 2015 22:55
@bootstraponline
Copy link
Contributor Author

Contributing to rspec-core has been a great experience. Thanks for the timely feedback and code reviews.

new_metadata.delete reserved_key
end

Example.new(example_group.clone, description.clone,
Copy link
Member

Choose a reason for hiding this comment

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

The example group should not be cloned. The example should belong to the same example group class, not a copy of it. The clone is likely to cause some bugs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch. I'll submit a fix & update the spec to check this bug.

myrridin pushed a commit to myrridin/rspec-core that referenced this pull request Dec 11, 2015
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
…with

Add duplicate_with for RSpec Example
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants