Sha256: 36c828011f593ad054add7557ce20126e3da3d6660342416be64502fc2ebf159
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Document, '#api?' do subject { described_class.new(docstring).api?(types) } let(:docstring) { double('docstring') } before do docstring.stub(:tag).with('api') { double(text: 'private') } end context 'when tag is equal' do let(:types) { ['private'] } it { should be(true) } end context 'when tag is not equal' do let(:types) { ['public'] } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.7 | spec/unit/yardstick/document/api_predicate_spec.rb |