scube-server/spec/spec_helper.rb
2012-05-04 19:08:29 +00:00

23 lines
542 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.mock_with :rspec
config.use_transactional_fixtures = true
Rails.configuration.sounds_path = "#{Rails.root}/tmp/spec/data/sounds"
config.after(:all) do
`rm -f #{Rails.configuration.sounds_path}/*`
end
end
end
Spork.each_run do
FactoryGirl.reload
end