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

Fix ruby warnings in test suite #2205

Merged
merged 1 commit into from Feb 23, 2018
Merged

Fix ruby warnings in test suite #2205

merged 1 commit into from Feb 23, 2018

Conversation

colby-swandale
Copy link
Member

@colby-swandale colby-swandale commented Feb 23, 2018

Description:

Running the rubygems test will print a couple of warnings, this PR fixes these warnings so we can have cleaner test output.

/Users/c/Projects/rubygems/test/rubygems/test_gem_package_tar_header.rb:161: warning: assigned but unused variable - new_header
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:408: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:463: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:490: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:517: warning: character class has duplicated range

The \n in [\n\s] is redundant because \s already includes \n

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.

@colby-swandale
Copy link
Member Author

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit 7f4951f has been approved by colby-swandale

@bundlerbot
Copy link
Collaborator

⌛ Testing commit 7f4951f with merge 26dda00...

bundlerbot added a commit that referenced this pull request Feb 23, 2018
Fix ruby warnings in test suite

# Description:

Running the rubygems test will print a couple of warnings, this PR fixes these warnings so we can have cleaner test output.

```
/Users/c/Projects/rubygems/test/rubygems/test_gem_package_tar_header.rb:161: warning: assigned but unused variable - new_header
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:408: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:463: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:490: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:517: warning: character class has duplicated range
```

The `\n` in `[\n\s]` is redundant because `\s` already includes `\n`

# 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 successful - status-travis
Approved by: colby-swandale
Pushing 26dda00 to master...

@bundlerbot bundlerbot merged commit 7f4951f into master Feb 23, 2018
@hsbt hsbt added this to the 2.7.7 milestone Feb 27, 2018
@segiddins segiddins deleted the colby/fix-test-warnings branch March 2, 2018 07:52
hsbt pushed a commit that referenced this pull request Apr 28, 2018
Fix ruby warnings in test suite

# Description:

Running the rubygems test will print a couple of warnings, this PR fixes these warnings so we can have cleaner test output.

```
/Users/c/Projects/rubygems/test/rubygems/test_gem_package_tar_header.rb:161: warning: assigned but unused variable - new_header
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:408: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:463: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:490: warning: character class has duplicated range
/Users/c/Projects/rubygems/test/rubygems/test_gem_server.rb:517: warning: character class has duplicated range
```

The `\n` in `[\n\s]` is redundant because `\s` already includes `\n`

# 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).
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

4 participants