From c8a0eab9d039e1c2838dfc13c0ad94dde8e4a214 Mon Sep 17 00:00:00 2001 From: yukihirop Date: Sat, 12 Aug 2017 16:51:45 +0900 Subject: Add document that you rake test single file by using DB(ex. postgresql) [ci skip] --- activerecord/RUNNING_UNIT_TESTS.rdoc | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.3