Sha256: 7e5acfc5831bf14625c56624d8bd096e9f0fe8bca35123f3c3085fb0cfd15185

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Rules::ApiTag::PrivateMethod, '#validatable?' do
  subject { described_class.new(document).validatable? }

  let(:document) { double('document', visibility: visibility) }

  context 'when protected visibility' do
    let(:visibility) { :private }

    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/private_method/validatable_predicate_spec.rb