Sha256: e33d87d59258ac92c11a16ea1eec328b234f2c92e89f6fd93a2ee7d82a4fe038

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 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

2 entries across 2 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/rules/api_tag/protected_method/validatable_predicate_spec.rb
yardstick-0.9.8 spec/unit/yardstick/rules/api_tag/protected_method/validatable_predicate_spec.rb