Sha256: 67af3ff88e222d1073c817577dfcabb40fcdf7abec00307414d434108d962101

Contents?: true

Size: 910 Bytes

Versions: 12

Compression:

Stored size: 910 Bytes

Contents

require 'spec_helper'

describe Kuhsaft::PublishState do
  context 'unpublished' do
    before do
      @publish_state = Kuhsaft::PublishState.new(name: 'unpublished', value: Kuhsaft::PublishState::UNPUBLISHED)
    end

    it 'should be UNPUBLISHED' do
      @publish_state.value.should be(Kuhsaft::PublishState::UNPUBLISHED)
    end
  end

  context 'published' do
    before do
      @publish_state = Kuhsaft::PublishState.new(name: 'published', value: Kuhsaft::PublishState::PUBLISHED)
    end

    it 'should be PUBLISHED' do
      @publish_state.value.should be(Kuhsaft::PublishState::PUBLISHED)
    end
  end

  context 'published_at' do
    before do
      @publish_state = Kuhsaft::PublishState.new(name: 'published_at', value: Kuhsaft::PublishState::PUBLISHED_AT)
    end

    it 'should be PUBLISHED_AT' do
      @publish_state.value.should be(Kuhsaft::PublishState::PUBLISHED_AT)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
qbrick-2.5.0.pre spec/models/publish_state_spec.rb
kuhsaft-2.4.3 spec/models/publish_state_spec.rb
kuhsaft-2.4.2 spec/models/publish_state_spec.rb
kuhsaft-2.4.1 spec/models/publish_state_spec.rb
kuhsaft-2.4.0 spec/models/publish_state_spec.rb
kuhsaft-2.3.6 spec/models/publish_state_spec.rb
kuhsaft-2.3.5 spec/models/publish_state_spec.rb
kuhsaft-2.3.4 spec/models/publish_state_spec.rb
kuhsaft-2.3.3 spec/models/publish_state_spec.rb
kuhsaft-2.3.2 spec/models/publish_state_spec.rb
kuhsaft-2.3.1 spec/models/publish_state_spec.rb
kuhsaft-2.3.0 spec/models/publish_state_spec.rb