Sha256: b0b790ffd640fd41dd7c9adddc9e025f9dcba3ffa715692dfed9ce0d697c074e

Contents?: true

Size: 928 Bytes

Versions: 3

Compression:

Stored size: 928 Bytes

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    class Item
      class CirculationPolicy
        describe Display do
          let(:value) { 'Display' }
          let(:mask) { 'Display Mask' }
          subject(:display) { Display.new(value, mask) }
          it { should be_a Display }
          describe '#value' do
            subject { display.value }
            it { should eq value }
          end
          describe '#mask' do
            subject { display.mask }
            it { should eq mask }
            context 'when the mask is not given' do
              let(:display) { Display.new(value) }
              it { should eq value }
            end
            context 'when the mask is given' do
              context 'and the mask is nil' do
                let(:mask) { nil }
                it { should eq value }
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-2.0.4 spec/exlibris/aleph/item/circulation_policy/display_spec.rb
exlibris-aleph-2.0.3 spec/exlibris/aleph/item/circulation_policy/display_spec.rb
exlibris-aleph-2.0.0 spec/exlibris/aleph/item/circulation_policy/display_spec.rb