Sha256: aa983756c994d29050d8060c8c5be09efed2d63719f5d6e970683aca9f398c8d

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Document, '#has_tag?' do
  subject { described_class.new(docstring).has_tag?(name) }

  let(:docstring) { double('docstring') }
  let(:name)      { 'tag name'          }

  it 'delegates to docstring' do
    docstring.should_receive(:has_tag?).with(name)
    subject
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/document/has_tag_predicate_spec.rb
yardstick-0.9.8 spec/unit/yardstick/document/has_tag_predicate_spec.rb
yardstick-0.9.7 spec/unit/yardstick/document/has_tag_predicate_spec.rb