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