diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index ec99ab89a123a8cf39b4a3403ddeca9e20655f2c..a970f5fe8542d8c35bbed39f75030304415ff5ea 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -32,7 +32,7 @@ begin
   require "minitest/autorun"
   require "mocha/setup"
 rescue LoadError
-  abort "Run `rake deps` or install the mocha and minitest gems before running the tests"
+  abort "Run `bundle install` or install the mocha and minitest gems before running the tests"
 end
 
 module Homebrew