aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-08-14 20:42:12 +0200
committerGitHub <noreply@github.com>2017-08-14 20:42:12 +0200
commit5a5b4816f14f18a4326f37e0a00854c2fcf4904c (patch)
treeb0db2faa07b590b2102107c9e8212951ca4edb4d /activerecord
parent114bab9fa45496d89c45765ecabd06102b299128 (diff)
parentc8a0eab9d039e1c2838dfc13c0ad94dde8e4a214 (diff)
downloadrails-5a5b4816f14f18a4326f37e0a00854c2fcf4904c.tar.gz
rails-5a5b4816f14f18a4326f37e0a00854c2fcf4904c.tar.bz2
rails-5a5b4816f14f18a4326f37e0a00854c2fcf4904c.zip
Merge pull request #30206 from yukihirop/improve_activerecord_rdoc
Add document that you rake test single file by using DB(ex. postgresql)
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS.rdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS.rdoc b/activerecord/RUNNING_UNIT_TESTS.rdoc
index cd22f76d01..60561e2c0f 100644
--- a/activerecord/RUNNING_UNIT_TESTS.rdoc
+++ b/activerecord/RUNNING_UNIT_TESTS.rdoc
@@ -43,5 +43,9 @@ You can override the +connections:+ parameter in either file using the +ARCONN+
$ ARCONN=postgresql bundle exec ruby -Itest test/cases/base_test.rb
+Or
+
+ $ bundle exec rake test:postgresql TEST=test/cases/base_test.rb
+
You can specify a custom location for the config file using the +ARCONFIG+
environment variable.