Skip to content

Commit

Permalink
[ci skip] Add bundle exec for ActiveRecord unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yahonda committed Mar 2, 2016
1 parent ff91808 commit 8f9f37a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activerecord/RUNNING_UNIT_TESTS.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.

0 comments on commit 8f9f37a

Please sign in to comment.