aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS.rdoc
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2016-03-02 16:34:40 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2016-03-02 16:34:40 +0000
commit8f9f37a98f6339e3083112a508842206323b456f (patch)
treec6dbe025d721b62fcff396f804f6b67bb5b51e09 /activerecord/RUNNING_UNIT_TESTS.rdoc
parentff91808651a19549ea8b101b8abdf5c3f811e0f4 (diff)
downloadrails-8f9f37a98f6339e3083112a508842206323b456f.tar.gz
rails-8f9f37a98f6339e3083112a508842206323b456f.tar.bz2
rails-8f9f37a98f6339e3083112a508842206323b456f.zip
[ci skip] Add `bundle exec` for ActiveRecord unit tests
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS.rdoc')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS.rdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS.rdoc b/activerecord/RUNNING_UNIT_TESTS.rdoc
index a74fcf2df7..cd22f76d01 100644
--- a/activerecord/RUNNING_UNIT_TESTS.rdoc
+++ b/activerecord/RUNNING_UNIT_TESTS.rdoc
@@ -7,11 +7,11 @@ http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#setting-up-
To run a specific test:
- $ ruby -Itest test/cases/base_test.rb -n method_name
+ $ bundle exec ruby -Itest test/cases/base_test.rb -n method_name
To run a set of tests:
- $ ruby -Itest test/cases/base_test.rb
+ $ bundle exec ruby -Itest test/cases/base_test.rb
You can also run tests that depend upon a specific database backend. For
example:
@@ -41,7 +41,7 @@ parameters in +test/config.example.yml+ are.
You can override the +connections:+ parameter in either file using the +ARCONN+
(Active Record CONNection) environment variable:
- $ ARCONN=postgresql ruby -Itest test/cases/base_test.rb
+ $ ARCONN=postgresql bundle exec ruby -Itest test/cases/base_test.rb
You can specify a custom location for the config file using the +ARCONFIG+
environment variable.