Sha256: d8cfceeebb2b126b1d94b7df11ddf0c0792074497f979f17c186e69f13409ef7
Contents?: true
Size: 507 Bytes
Versions: 3
Compression:
Stored size: 507 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Rules::ApiTag::PrivateMethod, '#valid?' do subject { described_class.new(document).valid? } let(:document) { double('document') } context 'when with protected api tag' do before { document.stub(:api?).with(%w[ private ]).and_return(true) } it { should be(true) } end context 'when not protected visibility' do before { document.stub(:api?).with(%w[ private ]).and_return(false) } it { should be(false) } end end
Version data entries
3 entries across 3 versions & 1 rubygems