aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2013-12-24 09:26:34 +0100
committerJosé Valim <jose.valim@plataformatec.com.br>2013-12-24 09:26:34 +0100
commitd8336cab32d0d8e8c2877cac26111cbecb5ac872 (patch)
tree3b382c66a548854040f30ffb86651af625329d51 /railties/test
parent222f00b42266e604bb8894771162672aadd1bacc (diff)
downloadrails-d8336cab32d0d8e8c2877cac26111cbecb5ac872.tar.gz
rails-d8336cab32d0d8e8c2877cac26111cbecb5ac872.tar.bz2
rails-d8336cab32d0d8e8c2877cac26111cbecb5ac872.zip
Fix build failures related to the new ENV options in yml
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/isolation/abstract_unit.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index 362c2c510a..a03b34bd16 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -117,6 +117,24 @@ module TestHelpers
end
end
+ File.open("#{app_path}/config/database.yml", "w") do |f|
+ f.puts <<-YAML
+ default: &default
+ adapter: sqlite3
+ pool: 5
+ timeout: 5000
+ development:
+ <<: *default
+ database: db/development.sqlite3
+ test:
+ <<: *default
+ database: db/test.sqlite3
+ production:
+ <<: *default
+ database: db/production.sqlite3
+ YAML
+ end
+
add_to_config <<-RUBY
config.eager_load = false
config.session_store :cookie_store, key: "_myapp_session"