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