Sha256: 6e1d3ad304aaf69a643055b7c3b97cbbbadfe2f5d69af7b0d8824de92c254ca9

Contents?: true

Size: 497 Bytes

Versions: 8

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

module Stash
  module Wrapper
    describe Embargo do
      describe 'none' do
        it "returns a no-embargo #{Embargo}" do
          embargo = Embargo.none
          expect(embargo).to be_an(Embargo)
          expect(embargo.type).to eq(EmbargoType::NONE)
          expect(embargo.period).to eq('none')
          today = Date.today
          expect(embargo.start_date).to eq(today)
          expect(embargo.end_date).to eq(today)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stash-wrapper-0.1.9 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.8 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.7 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.6 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.5 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.4 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.3 spec/unit/stash/wrapper/embargo_spec.rb
stash-wrapper-0.1.2 spec/unit/stash/wrapper/embargo_spec.rb