diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-02 13:39:41 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-02 13:39:41 -0300 |
commit | 671e61d867e036a321f238e59578f864969ace04 (patch) | |
tree | d4164a30fed09799522e7f42bc710aeea15a87df /activerecord | |
parent | 9a1cc04c90d5ece1d79da4d33686324061afd0c8 (diff) | |
parent | 8f9f37a98f6339e3083112a508842206323b456f (diff) | |
download | rails-671e61d867e036a321f238e59578f864969ace04.tar.gz rails-671e61d867e036a321f238e59578f864969ace04.tar.bz2 rails-671e61d867e036a321f238e59578f864969ace04.zip |
Merge pull request #24009 from yahonda/bundle_exec_activerecord_unittest
[ci skip] Add `bundle exec` for ActiveRecord unit tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/RUNNING_UNIT_TESTS.rdoc | 6 |
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. |