Skip to content

Instantly share code, notes, and snippets.

Created December 28, 2012 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4393956 to your computer and use it in GitHub Desktop.
Save anonymous/4393956 to your computer and use it in GitHub Desktop.
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require "minitest/autorun"
require "minitest/rails"
#require 'minitest/spec'
#begin; require 'turn/autorun'; rescue LoadError; end
#Turn.config.format = :pretty #:pretty, :dot, :cue, :marshal, :outline, :progress). Default: :pretty
# Uncomment if you want Capybara in accceptance/integration tests
require "minitest/rails/capybara"
# Uncomment if you want awesome colorful output
# require "minitest/pride"
#class MiniTest::Rails::ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
# fixtures :all
# Add more helper methods to be used by all tests here...
#end
# Do you want all existing Rails tests to use MiniTest::Rails?
# Comment out the following and either:
# A) Change the require on the existing tests to `require "minitest_helper"`
# B) Require this file's code in test_helper.rb
MiniTest::Rails.override_testunit!
class MiniTest::Rails::Spec
# Add methods to be used by all specs here
end
class MiniTest::Rails::Model
# make fixtures available within models spec
# include MiniTest::Rails::Fixtures
end
class MiniTest::Rails::Controller
# Add methods to be used by controller specs here
end
class MiniTest::Rails::Helper
# Add methods to be used by helper specs here
end
class MiniTest::Rails::Mailer
# Add methods to be used by mailer specs here
end
class MiniTest::Rails::Integration
# Add methods to be used by integration specs here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment