scube-server/spec/spec_helper.rb
2011-09-20 23:19:28 +00:00

18 lines
412 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
config.after(:all) do
`rm -f #{Rails.root}/data/sounds/*`
end
end
end