aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/contributing_to_ruby_on_rails.md
diff options
context:
space:
mode:
authorSammy Larbi <sam@codeodor.com>2014-12-21 10:13:54 -0600
committerSammy Larbi <sam@codeodor.com>2014-12-21 10:18:46 -0600
commitf5489f9ab4eddeb5d4ee57b5b4d1f2967073194d (patch)
tree19dd948ff3e0d7dcd09f4d5069203e76bdddbc9e /guides/source/contributing_to_ruby_on_rails.md
parentef529c637130918d8cb225bd7083e44ef4887899 (diff)
downloadrails-f5489f9ab4eddeb5d4ee57b5b4d1f2967073194d.tar.gz
rails-f5489f9ab4eddeb5d4ee57b5b4d1f2967073194d.tar.bz2
rails-f5489f9ab4eddeb5d4ee57b5b4d1f2967073194d.zip
Clarify ActiveRecord testing guidelines [ci skip]
1. Specify that you need to create the test databases, and that no special Rails command needs to be run to do that. 2. Although the underscore style of `rake test_mysql` works, make the documentation of running the tests in RUNNING_UNIT_TESTS.rdoc consistent with the "Contributing..." guide. 3. Promote "Testing Active Record" to not be a subsection of "Running a Single Test," since it doesn't make sense as a subsection of that.
Diffstat (limited to 'guides/source/contributing_to_ruby_on_rails.md')
-rw-r--r--guides/source/contributing_to_ruby_on_rails.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md
index 17afd07820..ef3ebb1412 100644
--- a/guides/source/contributing_to_ruby_on_rails.md
+++ b/guides/source/contributing_to_ruby_on_rails.md
@@ -287,7 +287,12 @@ $ ruby -w -Itest test/mail_layout_test.rb -n test_explicit_class_layout
The `-n` option allows you to run a single method instead of the whole
file.
-##### Testing Active Record
+#### Testing Active Record
+
+First, create the databases you'll need. For MySQL and PostgreSQL,
+running the SQL statements `create database activerecord_unittest` and
+`create database activerecord_unittest2` is sufficient. This is not
+necessary for SQLite3.
This is how you run the Active Record test suite only for SQLite3: