Skip to content

Commit

Permalink
Merge pull request #226 from walf443/fix_ambiguous_warning
Browse files Browse the repository at this point in the history
fixed warnings
  • Loading branch information
amatsuda authored Sep 25, 2017
2 parents 32dcaa6 + 7356091 commit 9ee9f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_rake_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,10 @@ def test_suggests_valid_rake_task_names
task :test
error = assert_raises(RuntimeError) { Task[:testt] }

assert_match /Don\'t know how to build task \'testt\'/, error.message
assert_match(/Don\'t know how to build task \'testt\'/, error.message)

if defined?(::DidYouMean::SpellChecker) && defined?(::DidYouMean::Formatter)
assert_match /Did you mean\? test/, error.message
assert_match(/Did you mean\? test/, error.message)
end
end
end

0 comments on commit 9ee9f69

Please sign in to comment.