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-0.3.4.rc2 spec/models/publish_state_spec.rb
kuhsaft-0.3.4.rc1 spec/models/publish_state_spec.rb
kuhsaft-0.3.3 spec/models/publish_state_spec.rb
kuhsaft-0.3.2 spec/models/publish_state_spec.rb
kuhsaft-0.2.5 spec/models/publish_state_spec.rb
kuhsaft-0.2.4 spec/models/publish_state_spec.rb
kuhsaft-0.2.3 spec/models/publish_state_spec.rb
kuhsaft-0.3.1 spec/models/publish_state_spec.rb
kuhsaft-0.3.0 spec/models/publish_state_spec.rb
kuhsaft-0.2.2 spec/models/publish_state_spec.rb
kuhsaft-0.2.1 spec/models/publish_state_spec.rb
kuhsaft-0.2 spec/models/publish_state_spec.rb