Skip to content

Instantly share code, notes, and snippets.

@beneggett
Created September 4, 2013 21:44
Show Gist options
  • Save beneggett/6443275 to your computer and use it in GitHub Desktop.
Save beneggett/6443275 to your computer and use it in GitHub Desktop.
test/test_helper.rb
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