Sha256: 5237b0040b17faa9a92a0e7376975279e03c6a6e08f71537582b025f1fe88794

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require 'spec_helper'

describe SpeedGun::Config do
  subject(:config) { described_class.new }

  describe '#enable!' do
    before do
      config.disable!
    end

    it 'enables the config' do
      expect(config).to_not be_enabled
      config.enable!
      expect(config).to be_enabled
    end
  end

  describe '#disable!' do
    it 'disables the config' do
      expect(config).to_not be_disabled
      config.disable!
      expect(config).to be_disabled
    end
  end

  describe '#enabled?' do
    it 'defaults to true' do
      expect(config.enabled?).to be_true
    end
  end

  describe '#disabled?' do
    it 'defaults to false' do
      expect(config.disabled?).to be_false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
speed_gun-1.0.0.rc1 spec/lib/speed_gun/config_spec.rb