Sha256: b76d0215768a7376f3213153eae8176aa3e38a6a8285a82c24f4229790c84896

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Document, '#visibility' do
  subject { described_class.new(docstring).visibility }

  let(:docstring) { double('docstring', object: object)      }
  let(:object)    { double('object', visibility: visibility) }

  context 'when true' do
    let(:visibility) { true }

    it { should be(true) }
  end

  context 'when false' do
    let(:visibility) { false }

    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/document/visibility_spec.rb