aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Kimpton <chris@kimptoc.net>2011-09-26 08:06:41 +0200
committerChris Kimpton <chris@kimptoc.net>2011-09-26 08:06:41 +0200
commit4b9b2f3d048906337d936ec6b85cd13a92b51448 (patch)
treeafad50286666d732c1debc998c289166e5a123eb
parent17ba60a724aad508327bf52212335420f4d81364 (diff)
downloadrails-4b9b2f3d048906337d936ec6b85cd13a92b51448.tar.gz
rails-4b9b2f3d048906337d936ec6b85cd13a92b51448.tar.bz2
rails-4b9b2f3d048906337d936ec6b85cd13a92b51448.zip
add some notes on setup for Active Record tests
-rw-r--r--railties/guides/source/contributing_to_ruby_on_rails.textile6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/guides/source/contributing_to_ruby_on_rails.textile b/railties/guides/source/contributing_to_ruby_on_rails.textile
index 30714e7e18..20263b1b37 100644
--- a/railties/guides/source/contributing_to_ruby_on_rails.textile
+++ b/railties/guides/source/contributing_to_ruby_on_rails.textile
@@ -120,6 +120,12 @@ The test suite of Active Record attempts to run four times, once for SQLite3, on
WARNING: If you're working with Active Record code, you _must_ ensure that the tests pass for at least MySQL, PostgreSQL, and SQLite3. Subtle differences between the various adapters have been behind the rejection of many patches that looked OK when tested only against MySQL.
+h5. Set up Database Configuration
+
+The Acitve Record test suite requires a custom config file: +activerecord/test/config.yml+ . An example is provided: +activerecord/test/config.example.yml+ - copy this and amend as needed for your environment.
+
+The SQLite3 config should work "as is".
+
h5. SQLite3
The gem +sqlite3-ruby+ does not belong to the "db" group indeed, if you followed the instructions above you're ready. This is how you run the Active Record test suite only for SQLite3: