scube-server/spec/spec_helper.rb
Thibault Jouan d4d0382e4c Remove `sounds_path' modification in spec_helper
Since e90bb01c, we already configure a different path for test
environment from application configuration.
2015-05-01 10:26:04 +00:00

23 lines
514 B
Ruby

require 'spork'
Spork.prefork do
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
RSpec.configure do |config|
config.infer_spec_type_from_file_location!
config.mock_with :rspec
config.use_transactional_fixtures = true
config.after(:all) do
`rm -f #{Rails.configuration.sounds_path}/*`
end
end
end
Spork.each_run do
FactoryGirl.reload
end