Sha256: e59ea49f665984f0855c7dec42cbf37be4afec5deac754158e286daa39d62187

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Rule, '#enabled?' do
  subject { described_class.new(document, config).enabled? }

  let(:document)     { double('document', path: 'Foo#bar') }
  let(:config)       { double('RuleConfig')                }
  let(:return_value) { double('Boolean')                   }

  before do
    allow(config).to receive(:enabled_for_path?).with('Foo#bar')
      .and_return(return_value)
  end

  it { should eq(return_value) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yardstick-0.9.7 spec/unit/yardstick/rule/enabled_predicate_spec.rb