Sha256: 412e2378ac3a67e33ab426fdb33644dfb2ec94957c12fb53cd03d2d076f0e3b5

Contents?: true

Size: 943 Bytes

Versions: 72

Compression:

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

72 entries across 72 versions & 1 rubygems

Version Path
kuhsaft-1.2.12 spec/models/publish_state_spec.rb
kuhsaft-1.2.11 spec/models/publish_state_spec.rb
kuhsaft-1.2.10 spec/models/publish_state_spec.rb
kuhsaft-1.2.9 spec/models/publish_state_spec.rb
kuhsaft-1.2.8 spec/models/publish_state_spec.rb
kuhsaft-1.2.7 spec/models/publish_state_spec.rb
kuhsaft-1.2.6 spec/models/publish_state_spec.rb
kuhsaft-1.2.5 spec/models/publish_state_spec.rb
kuhsaft-1.2.4 spec/models/publish_state_spec.rb
kuhsaft-1.2.3 spec/models/publish_state_spec.rb
kuhsaft-1.2.2 spec/models/publish_state_spec.rb
kuhsaft-1.2.1 spec/models/publish_state_spec.rb
kuhsaft-1.2.0 spec/models/publish_state_spec.rb
kuhsaft-1.1.1 spec/models/publish_state_spec.rb
kuhsaft-1.1.0 spec/models/publish_state_spec.rb
kuhsaft-1.0.3 spec/models/publish_state_spec.rb
kuhsaft-1.0.2 spec/models/publish_state_spec.rb
kuhsaft-1.0.1 spec/models/publish_state_spec.rb
kuhsaft-1.0.0 spec/models/publish_state_spec.rb
kuhsaft-0.3.4 spec/models/publish_state_spec.rb