Sha256: 58bbe128b949aefcf5b5f67aa0fd9d42c4453493283bd4a35678eaacbf439345

Contents?: true

Size: 965 Bytes

Versions: 2

Compression:

Stored size: 965 Bytes

Contents

# frozen_string_literal: true
# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../../spec/dummy/config/environment.rb', __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path('../../test/dummy/db/migrate', __FILE__)]
# require 'rails/test_help'
require 'rspec/rails'

# Filter out Minitest backtrace while allowing backtrace from other libraries
# to be shown.

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

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
  ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
  ActiveSupport::TestCase.fixtures :all
end

RSpec.configure do |config|
  config.use_transactional_fixtures = true

  config.infer_spec_type_from_file_location!
  config.filter_rails_from_backtrace!
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tp_healthcheck-0.1.3 spec/rails_helper.rb
tp_healthcheck-0.1.2 spec/rails_helper.rb