Sha256: cbd4d8ae04e2d25d368bb4e1785c1bab3d9b73eaf1d2d5b8815e5319a92e1193

Contents?: true

Size: 1.44 KB

Versions: 13

Compression:

Stored size: 1.44 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# (The MIT License)
# Copyright (c) 2012 Chad Humphries, David Chelimsky, Myron Marston
# Copyright (c) 2009 Chad Humphries, David Chelimsky
# Copyright (c) 2006 David Chelimsky, The RSpec Development Team
# Copyright (c) 2005 Steven Baker

# Turn on verbose to make sure we not generating any ruby warning
$VERBOSE = true

# So our "did they run the rspec command?" detection logic thinks
# that we run `rspec`.
$0 = 'rspec'

# This is necessary for when `--standalone` is being used.
$LOAD_PATH.unshift File.expand_path '../bundle', __dir__

# For the travis build we put the bundle directory up a directory
# so it can be shared among the repos for faster bundle installs.
$LOAD_PATH.unshift File.expand_path '../../bundle', __dir__

require 'bundler/setup'

# To use simplecov while running rspec-core's test suite, we must
# load simplecov _before_ loading any of rspec-core's files.
# So, this executable exists purely as a wrapper script that
# first loads simplecov, and then loads rspec.
begin
  # Simplecov emits some ruby warnings when loaded, so silence them.
  old_verbose = $VERBOSE
  $VERBOSE = false

  unless (ENV.fetch('COVERAGE', nil) && ENV['COVERAGE'].empty?) || RUBY_VERSION < '1.9.3'
    require 'simplecov'

    SimpleCov.start do
      enable_coverage :branch
    end
  end
rescue LoadError
  # simplecov is not available
ensure
  $VERBOSE = old_verbose
end

load File.expand_path('rspec', __dir__)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-openapi-0.18.3 scripts/rspec_with_simplecov
rspec-openapi-0.18.2 scripts/rspec_with_simplecov
rspec-openapi-0.18.1 scripts/rspec_with_simplecov
rspec-openapi-0.18.0 scripts/rspec_with_simplecov
rspec-openapi-0.17.0 scripts/rspec_with_simplecov
rspec-openapi-0.16.1 scripts/rspec_with_simplecov
rspec-openapi-0.16.0 scripts/rspec_with_simplecov
rspec-openapi-0.15.0 scripts/rspec_with_simplecov
rspec-openapi-0.14.0 scripts/rspec_with_simplecov
rspec-openapi-0.13.0 scripts/rspec_with_simplecov
rspec-openapi-0.12.0 scripts/rspec_with_simplecov
rspec-openapi-0.11.0 scripts/rspec_with_simplecov
rspec-openapi-0.10.0 scripts/rspec_with_simplecov