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