Sha256: 6212d23256ba83800e590e5800c55e985a43ea884f9c7908fc5472ea59a0f4cb

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/unit/yardstick/document/visibility_spec.rb
yardstick-0.9.8 spec/unit/yardstick/document/visibility_spec.rb