Created
August 28, 2012 10:04
-
-
Save Linuus/3496814 to your computer and use it in GitHub Desktop.
Minitest rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] = "test" | |
require File.expand_path('../../config/environment', __FILE__) | |
require "minitest/autorun" | |
require "minitest/rails" | |
# 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 | |
Turn.config.format = :outline | |
# 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! | |
# DUE TO BUG IN AA!!!! | |
I18n.locale = I18n.default_locale |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment