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

prefer to use util_spec in Gem::TestCase #2227

Merged
merged 3 commits into from Mar 27, 2018
Merged

prefer to use util_spec in Gem::TestCase #2227

merged 3 commits into from Mar 27, 2018

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Mar 9, 2018

Description:

Gem::Testcase has new_spec and util_spec for building stub specification. I migrated them to util_spec and marked new_spec to deprecated.


Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

Copy link
Member

@segiddins segiddins left a comment

Choose a reason for hiding this comment

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

This is awesome!

@@ -866,6 +867,19 @@ def util_spec name, version = 2, deps = nil # :yields: specification
end
end

unless files.empty? then
Copy link
Member

Choose a reason for hiding this comment

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

should this check s.files instead?

Copy link
Member

Choose a reason for hiding this comment

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

@segiddins s isn't defined at this point. (it'd be spec, here.)

@hsbt can you leave a comment here confirming whether or not this unless statement is correct?

if you confirm that's correct, lgtm.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is the different condition with spec.files. I tried to replace spec.files, after that some tests were failed.

I will go current implementation as first.

@hsbt
Copy link
Member Author

hsbt commented Mar 26, 2018

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit a33365b has been approved by hsbt

@bundlerbot
Copy link
Collaborator

⌛ Testing commit a33365b with merge 4bc7338...

bundlerbot added a commit that referenced this pull request Mar 26, 2018
prefer to use util_spec in `Gem::TestCase`

# Description:

`Gem::Testcase` has `new_spec` and `util_spec` for building stub specification. I migrated them to util_spec and marked new_spec to deprecated.

______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).
@bundlerbot
Copy link
Collaborator

💔 Test failed - status-travis

@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: hsbt
Pushing 4bc7338 to master...

@bundlerbot bundlerbot merged commit a33365b into master Mar 27, 2018
@hsbt hsbt deleted the util_spec branch March 27, 2018 00:53
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

5 participants