Use rails configuration for sounds file path

* Add sounds_path initializer
This commit is contained in:
Thibault Jouan
2011-09-21 21:21:14 +00:00
parent 6af1540640
commit a8067404f4
4 changed files with 8 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ Spork.prefork do
config.mock_with :rspec
config.use_transactional_fixtures = true
config.after(:all) do
`rm -f #{Rails.root}/data/sounds/*`
`rm -f #{Rails.configuration.sounds_path}/*`
end
end
end