Sha256: 7dce78e1fba40cc4a8a44519679a80ae22c3439808d82c830d505c2bce57ea65

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::RuleConfig, '#initialize' do
  context 'when no options given' do
    subject { described_class.new }

    it 'does not apply restrictions' do
      expect(subject.enabled_for_path?('Foo#bar')).to be(true)

      # Satisfy mutant
      expect(subject.instance_variable_get(:@exclude)).to eq([])
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/rule_config/initialize_spec.rb
yardstick-0.9.8 spec/unit/yardstick/rule_config/initialize_spec.rb
yardstick-0.9.7 spec/unit/yardstick/rule_config/initialize_spec.rb