Sha256: eee93e50da4ea4e3ee7074836f2889a0b6ebe2ac0d4c80ec9b281fb186b4cbd4

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Pact
  module RSpec

    def self.color_enabled?
      if ::RSpec.configuration.respond_to?(:color_enabled?)
        ::RSpec.configuration.color_enabled?(::RSpec.configuration.output_stream)
      else
        ::RSpec.configuration.color_enabled?
      end
    end

    def self.full_description example
      example.respond_to?(:full_description) ? example.full_description : example.example.full_description
    end

    def self.runner_defined?
      defined?(::RSpec::Core::Runner)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-1.1.1 lib/pact/rspec.rb