Sha256: 65ee97a7849e19100f747182787b5b51febe773f0c1de50153f3320dd223a93f

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Rules::Summary::Presence, '#validatable?' do
  subject { described_class.new(document).validatable? }

  let(:document) { double('document') }

  context 'with @see tag' do
    before { document.stub(:has_tag?).with('see').and_return(true) }

    it { should be(false) }
  end

  context 'without @see tag' do
    before { document.stub(:has_tag?).with('see').and_return(false) }

    it { should be(true) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/rules/summary/presence/validatable_predicate_spec.rb
yardstick-0.9.8 spec/unit/yardstick/rules/summary/presence/validatable_predicate_spec.rb
yardstick-0.9.7 spec/unit/yardstick/rules/summary/presence/validatable_predicate_spec.rb