Permalink
Browse files

add some notes on setup for Active Record tests

  • Loading branch information...
1 parent 17ba60a commit 4b9b2f3d048906337d936ec6b85cd13a92b51448 @kimptoc kimptoc committed Sep 26, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 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:

0 comments on commit 4b9b2f3

Please sign in to comment.