Created
September 4, 2013 21:44
-
-
Save beneggett/6443275 to your computer and use it in GitHub Desktop.
test/test_helper.rb
This file contains hidden or 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 "coveralls" | |
Coveralls.wear! | |
require File.expand_path("../../config/environment", __FILE__) | |
require "rails/test_help" | |
require "minitest/rails" | |
require "email_spec" | |
# To add Capybara feature tests add `gem "minitest-rails-capybara"` | |
# to the test group in the Gemfile and uncomment the following: | |
require "minitest/rails/capybara" | |
# Uncomment for awesome colorful output | |
require "minitest/pride" | |
class ActiveSupport::TestCase | |
# Add more helper methods to be used by all tests here... | |
include FactoryGirl::Syntax::Methods | |
include EmailSpec::Helpers | |
include EmailSpec::Matchers | |
end | |
class ActionController::TestCase | |
include FactoryGirl::Syntax::Methods | |
include EmailSpec::Helpers | |
include EmailSpec::Matchers | |
include Devise::TestHelpers | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment