Sha256: 14831c55bc9245e1516c6ac434acb9c8b6c99d1221c2af039832adc0e30c003f
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
#generates coverage report require 'simplecov' SimpleCov.start('rails') do add_filter '/vendor/' end # Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } class ActiveSupport::TestCase teardown do Mongoid.default_session.collections.select {|c| c.name !~ /system/ }.each(&:drop) end end class ActionController::TestCase teardown do Mongoid.default_session.collections.select {|c| c.name !~ /system/ }.each(&:drop) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
publish-0.1.1 | test/test_helper.rb |