Sha256: 8a6bf6466bb66af795a8d8c132b052cc6d0a10f402f6739ba03d8f591a8a902b

Contents?: true

Size: 836 Bytes

Versions: 5

Compression:

Stored size: 836 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "debug" if ENV.fetch("DEBUG", false)

if ENV["COVERAGE"] == "1"
  require "simplecov"
  require "simplecov-console"

  SimpleCov.start("rails")

  # do not crash on failure; we want a distinct job to report the coverage error
  module SimpleCov
    class << self
      def result_exit_status(_)
        SimpleCov::ExitCodes::SUCCESS
      end
    end
  end
end

require "httpx"
require "webmock/minitest"
require "httpx/adapters/webmock"
WebMock.enable!
WebMock.disable_net_connect!(allow_localhost: true)

require_relative "./support/rails"

require "minitest/pride"

require "webmock/minitest"
# Load everything else from test/support
Dir[File.expand_path("support/**/*.rb", __dir__)].each { |rb| require(rb) }

# https://github.com/freerange/mocha#rails
require "mocha/minitest"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hephaestus-0.5.0 templates/test/test_helper.rb
hephaestus-0.4.0 templates/test/test_helper.rb
hephaestus-0.3.1 templates/test/test_helper.rb
hephaestus-0.2.3 templates/test/test_helper.rb
hephaestus-0.2.2 templates/test/test_helper.rb