tap/test/test_helper.rb
2015-03-09 13:17:41 +01:00

30 lines
684 B
Ruby

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
require 'coveralls'
Coveralls.wear!
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'capybara/rails'
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
# Add more helper methods to be used by all tests here...
end
class ActionDispatch::IntegrationTest
include Warden::Test::Helpers
Warden.test_mode!
def sign_in(user)
login_as user, scope: :user
end
# Make the Capybara DSL available in all integration tests
include Capybara::DSL
end