diff --git a/railties/guides/source/contributing_to_ruby_on_rails.textile b/railties/guides/source/contributing_to_ruby_on_rails.textile
index 5848172510..4d84c50e2a 100644
--- a/railties/guides/source/contributing_to_ruby_on_rails.textile
+++ b/railties/guides/source/contributing_to_ruby_on_rails.textile
@@ -87,21 +87,21 @@ $ bundle install --without db
This command will install all dependencies except the MySQL and PostgreSQL Ruby drivers. We will come back at these soon. With dependencies installed, you can run the test suite with:
-$ rake test
+$ bundle exec rake test
You can also run tests for a specific framework, like Action Pack, by going into its directory and executing the same command:
$ cd actionpack
-$ rake test
+$ bundle exec rake test
If you want to run tests from the specific directory use the +TEST_DIR+ environment variable. For example, this will run tests inside +railties/test/generators+ directory only:
$ cd railties
-$ TEST_DIR=generators rake test
+$ TEST_DIR=generators bundle exec rake test
h4. Warnings
@@ -111,7 +111,7 @@ The test suite runs with warnings enabled. Ideally Ruby on Rails should issue no
As of this writing they are specially noisy with Ruby 1.9. If you are sure about what you are doing and would like to have a more clear output, there's a way to override the flag:
-$ RUBYOPT=-W0 rake test
+$ RUBYOPT=-W0 bundle exec rake test
h4. Testing Active Record
@@ -130,7 +130,7 @@ The gem +sqlite3-ruby+ does not belong to the "db" group indeed, if you followed
$ cd activerecord
-$ rake test_sqlite3
+$ bundle exec rake test_sqlite3
h5. MySQL and PostgreSQL
@@ -195,7 +195,7 @@ test_postgresql
respectively. As we mentioned before
-$ rake test
+$ bundle exec rake test
will now run the four of them in turn.