Sha256: 79e65bfd4cafc1a4abc436c469b0cec8c9f1208811065a40ce2e46f638f189e4
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Rules::ApiTag::ProtectedMethod, '#validatable?' do subject { described_class.new(document).validatable? } let(:document) { double('document', visibility: visibility) } context 'when protected visibility' do let(:visibility) { :protected } it { should be(true) } end context 'when not protected visibility' do let(:visibility) { :something } 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/rules/api_tag/protected_method/validatable_predicate_spec.rb |