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
+++ /dev/null
-# 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
--- /dev/null
+# 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
+++ /dev/null
-# 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
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/