]> source.dussan.org Git - redmine.git/commitdiff
Test environments cleanup.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Jan 2008 14:24:19 +0000 (14:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Jan 2008 14:24:19 +0000 (14:24 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1084 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/database.yml.example
config/environments/test_oracle.rb [deleted file]
config/environments/test_sqlite3.rb [new file with mode: 0644]
config/environments/test_sqlserver.rb [deleted file]
vendor/plugins/actionwebservice/init.rb

index 2f38d81ef780daf804b4f17cbf55dd21711cd5a2..f72844a0743124bed1188c12425cf9f9d62b4402 100644 (file)
@@ -29,23 +29,16 @@ test:
 
 test_pgsql:
   adapter: postgresql
-  database: redmine
+  database: redmine_test
   host: localhost
   username: postgres
   password: "postgres"
 
-test_oracle:
-  adapter: oci
-  host: 192.168.0.14
-  username: rails_test
-  password: "rails"
-  
-test_sqlserver:
-  adapter: sqlserver
-  host: localhost,1157
-  database: redmine_test
+test_sqlite3:
+  adapter: sqlite3
+  dbfile: db/test.db
   
 demo:
   adapter: sqlite3
-  dbfile: db/redmine_demo.db
+  dbfile: db/demo.db
   
diff --git a/config/environments/test_oracle.rb b/config/environments/test_oracle.rb
deleted file mode 100644 (file)
index 0eb1cd6..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The test environment is used exclusively to run your application's
-# test suite.  You never need to work with it otherwise.  Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs.  Don't rely on the data there!
-config.cache_classes = false
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils    = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching             = false
-
-config.action_mailer.delivery_method = :test
\ No newline at end of file
diff --git a/config/environments/test_sqlite3.rb b/config/environments/test_sqlite3.rb
new file mode 100644 (file)
index 0000000..35bb19b
--- /dev/null
@@ -0,0 +1,16 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite.  You never need to work with it otherwise.  Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs.  Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils    = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching             = false
+
+config.action_mailer.delivery_method = :test
\ No newline at end of file
diff --git a/config/environments/test_sqlserver.rb b/config/environments/test_sqlserver.rb
deleted file mode 100644 (file)
index 35bb19b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# Settings specified here will take precedence over those in config/environment.rb
-
-# The test environment is used exclusively to run your application's
-# test suite.  You never need to work with it otherwise.  Remember that
-# your test database is "scratch space" for the test suite and is wiped
-# and recreated between test runs.  Don't rely on the data there!
-config.cache_classes = true
-
-# Log error messages when you accidentally call methods on nil.
-config.whiny_nils    = true
-
-# Show full error reports and disable caching
-config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching             = false
-
-config.action_mailer.delivery_method = :test
\ No newline at end of file
index 582f737175d757c1e84d2aefe7ed4b00a0fbf7e2..ade118c0f33616aa11814a58cd8de8dbd6e28ec0 100644 (file)
@@ -4,4 +4,4 @@ require 'action_web_service'
 Dependencies.load_paths += ["#{RAILS_ROOT}/app/apis"]
   
 # AWS Test helpers
-require 'action_web_service/test_invoke' if ENV['RAILS_ENV'] == 'test'
+require 'action_web_service/test_invoke' if ENV['RAILS_ENV'] && ENV['RAILS_ENV'] =~ /^test/