diff options
author | re4k <re4k@re4k.info> | 2013-04-04 19:20:51 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-04-04 19:20:51 +0900 |
commit | 84183b7bb1c42a80b323ea3caef30467dcde23a6 (patch) | |
tree | c248d894619fce6c585747dff5f8f03c15d989c4 /config | |
parent | 61dde16fd55babd2ccf5ff6a9c8be1f600868d9b (diff) | |
download | aclog-84183b7bb1c42a80b323ea3caef30467dcde23a6.tar.gz |
Add test(partial)
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 4 | ||||
-rw-r--r-- | config/environments/test.rb | 4 | ||||
-rw-r--r-- | config/settings/test.yml | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index e1ce527..f731bfa 100644 --- a/config/application.rb +++ b/config/application.rb @@ -27,5 +27,9 @@ module Aclog end config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) + + config.generators do |g| + g.fixture_replacement :factory_girl + end end end diff --git a/config/environments/test.rb b/config/environments/test.rb index 7254eb2..83e386b 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -5,7 +5,7 @@ Aclog::Application.configure do # 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 + config.cache_classes = false # Do not eager load code on boot. This avoids loading your whole application # just for the purpose of running a single test. If you are using a tool that @@ -33,4 +33,6 @@ Aclog::Application.configure do # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + config.cache_store = :null_store end diff --git a/config/settings/test.yml b/config/settings/test.yml index e69de29..15335ad 100644 --- a/config/settings/test.yml +++ b/config/settings/test.yml @@ -0,0 +1,3 @@ +consumer: + - key: JVkX2Uy0Qtigsh0GiG5Lw + secret: vfkPvOkzKUGuZ4xKtFAVvlAKoL3u2grxchuQEBvE |