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

Add spec to the result of Coverage lib for begin #1149

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

okuramasafumi
Copy link
Contributor

Ref: jruby/jruby#8173

I'm not sure if this is the right way to add a spec or not. Please point it out if I miss something or there's a better way.

@@ -0,0 +1,24 @@
require_relative '../../spec_helper'
Copy link
Member

Choose a reason for hiding this comment

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

Files almost always reflect a method, so could you move this example to https://github.com/ruby/spec/blob/master/library/coverage/result_spec.rb ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for being late, it's done.

Ref: jruby/jruby#8173
This commit is intended to make sure `Coverage` library behaves
the same for the code with `begin`. JRuby had an issue so this
change will help JRuby and other implementations to avoid it.
@andrykonchin
Copy link
Member

Thank you!

@andrykonchin andrykonchin merged commit a62556b into ruby:master Jun 26, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants