Mercurial > hg > soundsoftware-site
comparison config/environments/test.rb @ 1338:25603efa57b5
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:14 +0100 |
parents | 433d4f72a19b |
children | dffacf8a6908 |
comparison
equal
deleted
inserted
replaced
1209:1b1138f6f55e | 1338:25603efa57b5 |
---|---|
1 # Settings specified here will take precedence over those in config/environment.rb | 1 # Settings specified here will take precedence over those in config/application.rb |
2 RedmineApp::Application.configure do | |
3 # The test environment is used exclusively to run your application's | |
4 # test suite. You never need to work with it otherwise. Remember that | |
5 # your test database is "scratch space" for the test suite and is wiped | |
6 # and recreated between test runs. Don't rely on the data there! | |
7 config.cache_classes = true | |
2 | 8 |
3 # The test environment is used exclusively to run your application's | 9 # Log error messages when you accidentally call methods on nil. |
4 # test suite. You never need to work with it otherwise. Remember that | 10 config.whiny_nils = true |
5 # your test database is "scratch space" for the test suite and is wiped | |
6 # and recreated between test runs. Don't rely on the data there! | |
7 config.cache_classes = true | |
8 | 11 |
9 # Log error messages when you accidentally call methods on nil. | 12 # Show full error reports and disable caching |
10 config.whiny_nils = true | 13 #config.action_controller.consider_all_requests_local = true |
14 config.action_controller.perform_caching = false | |
11 | 15 |
12 # Show full error reports and disable caching | 16 config.action_mailer.perform_deliveries = true |
13 config.action_controller.consider_all_requests_local = true | |
14 config.action_controller.perform_caching = false | |
15 | 17 |
16 config.action_mailer.perform_deliveries = true | 18 # Tell Action Mailer not to deliver emails to the real world. |
17 config.action_mailer.delivery_method = :test | 19 # The :test delivery method accumulates sent emails in the |
20 # ActionMailer::Base.deliveries array. | |
21 config.action_mailer.delivery_method = :test | |
18 | 22 |
19 config.action_controller.session = { | 23 # Skip protect_from_forgery in requests |
20 :key => "_test_session", | 24 # http://m.onkey.org/2007/9/28/csrf-protection-for-your-existing-rails-application |
21 :secret => "some secret phrase for the tests." | 25 config.action_controller.allow_forgery_protection = false |
22 } | |
23 | 26 |
24 # Skip protect_from_forgery in requests http://m.onkey.org/2007/9/28/csrf-protection-for-your-existing-rails-application | 27 config.active_support.deprecation = :log |
25 config.action_controller.allow_forgery_protection = false | |
26 | 28 |
27 config.gem "shoulda", :version => "~> 2.10.3" | 29 config.secret_token = 'a secret token for running the tests' |
28 config.gem "edavis10-object_daddy", :lib => "object_daddy" | 30 end |
29 config.gem "mocha" |