Sha256: ae7cd691f54e8baba7e0483d9756e29add45bfc8e50d2c87c567333777108ee6

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
RUBYOPT="-w $RUBYOPT"

require 'simplecov'
SimpleCov.adapters.define 'rubygem' do
  # Add app to Merit group
  # https://github.com/colszowka/simplecov/pull/104
  add_group 'Merit', 'lib'
  add_group 'DummyApp', 'test/dummy'
  add_filter 'test/dummy/config/initializers'
end
SimpleCov.start 'rubygem' if ENV["COVERAGE"]

require File.expand_path("../dummy/config/environment.rb",  __FILE__)

require "rails/test_help"

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

# Configure capybara for integration testing
require "capybara/rails"
Capybara.default_driver   = :rack_test
Capybara.default_selector = :css

require 'minitest/spec'
require 'minitest/autorun'
require 'minitest/mock'
require 'mocha/setup'

ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merit-1.6.1 test/test_helper.rb
merit-1.6.0 test/test_helper.rb