Sha256: 63727391856fa799e0a8e09c0f69ef6e2937744e42ef9c80d8bbd24f001b423e

Contents?: true

Size: 621 Bytes

Versions: 4

Compression:

Stored size: 621 Bytes

Contents

require 'spec_helper'
require 'pact/provider/configuration/configuration_extension'

module Pact

  module Provider

    module Configuration

      describe ConfigurationExtension do

        subject { Object.new.extend(ConfigurationExtension) }

        describe "#color_enabled" do

          it "sets color_enabled to be true by default" do
            expect(subject.color_enabled).to be_true
          end

          it "allows configuration of colour_enabled" do
            subject.color_enabled = false
            expect(subject.color_enabled).to be_false
          end

        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pact-1.1.0 spec/lib/pact/provider/configuration/configuration_extension_spec.rb
pact-1.1.0.rc5 spec/lib/pact/provider/configuration/configuration_extension_spec.rb
pact-1.1.0.rc4 spec/lib/pact/provider/configuration/configuration_extension_spec.rb
pact-1.1.0.rc3 spec/lib/pact/provider/configuration/configuration_extension_spec.rb