Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (20 sloc) 611 Bytes
ENV["RAILS_ENV"] ||= "test"
require File.expand_path("../../config/environment", __FILE__)
require "rspec/rails"
require "shoulda-matchers"
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.include EmailSpec::Helpers
config.include EmailSpec::Matchers
config.before(:each) do
Capybara.reset_sessions!
Mongo.db.collections.each do |collection|
collection.drop unless collection.name =~ /^system\./
end
end
config.after(:each) do
Timecop.return
end
end
Something went wrong with that request. Please try again.