Skip to content

Instantly share code, notes, and snippets.

@braidn
Created October 16, 2014 17:24
Show Gist options
  • Save braidn/15d71e67063dadd7532d to your computer and use it in GitHub Desktop.
Save braidn/15d71e67063dadd7532d to your computer and use it in GitHub Desktop.
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/spec/expect'
require 'mocha/mini_test'
require "minitest/rails"
require 'mandrill_mailer/offline'
require 'minitest/reporters'
Minitest::Reporters.use! [ Minitest::Reporters::SpecReporter.new ]
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Rails.logger.level = 1
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
fixtures :all
self.use_transactional_fixtures = true
# Add more helper methods to be used by all tests here...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment