Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.967 kB
if RUBY_ENGINE == "ruby"
begin
require "simplecov"
SimpleCov.add_filter "test"
SimpleCov.add_filter "config"
SimpleCov.command_name "MiniTest"
SimpleCov.start "rails"
rescue LoadError
warn "unable to load SimpleCov"
end
end
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require "minitest/autorun"
require "minitest/rails"
require "minitest/pride" # Provides awesome colorful output
require "minitest-rails-shoulda" # shoulda matchers
# Uncomment if you want Capybara in accceptance/integration tests
# require "minitest/rails/capybara"
require "mocha" # mocks and stubs
# use factories instead of fixtures
require 'factory_girl'
FactoryGirl.find_definitions
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join("./test/support/**/*.rb")].sort.each { |f| require f }
MiniTest::Rails.override_testunit!
Jump to Line
Something went wrong with that request. Please try again.