Skip to content
Browse files

Split expected message in test for suggestion

  • Loading branch information...
1 parent 14656a4 commit f63e95d4438e124aa9f1acaf78de1b146c999eb2 @presidentbeef committed Jun 20, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/rubygems/test_gem_commands_install_command.rb
View
8 test/rubygems/test_gem_commands_install_command.rb
@@ -222,11 +222,11 @@ def test_execute_nonexistent_with_dashes
assert_equal 2, e.exit_code
end
- expected = "ERROR: Could not find a valid gem 'non-existent_with-hint' (>= 0) in any repository
-ERROR: Possible alternatives: nonexistent-with_hint
-"
+ expected = ["ERROR: Could not find a valid gem 'non-existent_with-hint' (>= 0) in any repository", "ERROR: Possible alternatives: nonexistent-with_hint"]
- assert_equal expected, @ui.error
+ output = @ui.error.split "\n"
+
+ assert_equal expected, output
end
def test_execute_conflicting_install_options

0 comments on commit f63e95d

Please sign in to comment.
Something went wrong with that request. Please try again.