Sha256: 8e0881c3882ef4fbe2a78f892c2b62c62c0aabd94827808550290fcf50370cb6
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Rule, '.coerce' do subject { described_class.coerce(document, config) } let(:document) { DocumentMock.new } let(:config) { double('config') } let(:rule_config) { Yardstick::RuleConfig.new(enabled: false) } before do config.stub(:for_rule).with(described_class) { rule_config } end it { should be_a(described_class) } it { should_not be_enabled } its(:document) { should be(document) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.7 | spec/unit/yardstick/rule/class_methods/coerce_spec.rb |