aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/RUNNING_UNIT_TESTS
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 02:54:19 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 02:54:19 +0000
commit784165e03b8d297916edd23060a0f6b5c79b7ba1 (patch)
tree5b6766f5db1390bd2441f0f5d1cecfa897e47d35 /activerecord/RUNNING_UNIT_TESTS
parente8504877c0659f437cf294c6bca3471e025226d2 (diff)
downloadrails-784165e03b8d297916edd23060a0f6b5c79b7ba1.tar.gz
rails-784165e03b8d297916edd23060a0f6b5c79b7ba1.tar.bz2
rails-784165e03b8d297916edd23060a0f6b5c79b7ba1.zip
Fixed a few Oracle issues: Allows Oracle's odd date handling to still work consistently within #to_xml, Passes test that hardcode insert statement by dropping the :id column, Updated RUNNING_UNIT_TESTS with Oracle instructions, Corrects method signature for #exec #5294 [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/RUNNING_UNIT_TESTS')
-rw-r--r--activerecord/RUNNING_UNIT_TESTS17
1 files changed, 17 insertions, 0 deletions
diff --git a/activerecord/RUNNING_UNIT_TESTS b/activerecord/RUNNING_UNIT_TESTS
index a995bf3bab..17d9b1aa26 100644
--- a/activerecord/RUNNING_UNIT_TESTS
+++ b/activerecord/RUNNING_UNIT_TESTS
@@ -44,3 +44,20 @@ This gives a very large speed boost. With rake:
Or, by hand:
AR_TX_FIXTURES=yes ruby -I connections/native_sqlite3 base_test.rb
+
+== Testing with Oracle
+
+In order to allow for testing against Oracle using an "arunit" schema within an existing
+Oracle database, the database name and tns connection string must be set in environment
+variables prior to running the unit tests.
+
+ $ export ARUNIT_DB_NAME=MYDB
+ $ export ARUNIT_DB=MYDB
+
+The ARUNIT_DB_NAME variable should be set to the name by which the database knows
+itself, ie., what will be returned by the query:
+
+ select sys_context('userenv','db_name') db from dual
+
+And the ARUNIT_DB variable should be set to the tns connection string.
+