Skip to content

Commit

Permalink
Merge pull request #4024 from rubygems/remove_bad_new_line
Browse files Browse the repository at this point in the history
Remove unintended new line in `gem query` deprecation message
  • Loading branch information
deivid-rodriguez committed Oct 23, 2020
2 parents aa991a5 + 7e6a0b5 commit 2e39635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rubygems/commands/query_command.rb
Expand Up @@ -13,7 +13,7 @@ class Gem::Commands::QueryCommand < Gem::Command
def deprecation_warning
warning_without_suggested_alternatives

message = "\nIt is recommended that you use `gem search` or `gem list` instead.\n"
message = "It is recommended that you use `gem search` or `gem list` instead.\n"
alert_warning message unless Gem::Deprecate.skip
end

Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_gem_runner.rb
Expand Up @@ -78,7 +78,7 @@ def test_query_is_deprecated
end

assert_match(/WARNING: query command is deprecated. It will be removed in Rubygems [0-9]+/, @ui.error)
assert_match(/It is recommended that you use `gem search` or `gem list` instead/, @ui.error)
assert_match(/WARNING: It is recommended that you use `gem search` or `gem list` instead/, @ui.error)
end

def test_info_succeeds
Expand Down

0 comments on commit 2e39635

Please sign in to comment.