Sha256: 880a2ef7f9e3a55a8df50f1701611d3321d1648f4f362deae6f58f005db56ddd
Contents?: true
Size: 926 Bytes
Versions: 16
Compression:
Stored size: 926 Bytes
Contents
require 'spec_helper' describe Qbrick::PublishState, type: :model do context 'unpublished' do before do @publish_state = Qbrick::PublishState.new(name: 'unpublished', value: Qbrick::PublishState::UNPUBLISHED) end it 'should be UNPUBLISHED' do expect(@publish_state.value).to be(Qbrick::PublishState::UNPUBLISHED) end end context 'published' do before do @publish_state = Qbrick::PublishState.new(name: 'published', value: Qbrick::PublishState::PUBLISHED) end it 'should be PUBLISHED' do expect(@publish_state.value).to be(Qbrick::PublishState::PUBLISHED) end end context 'published_at' do before do @publish_state = Qbrick::PublishState.new(name: 'published_at', value: Qbrick::PublishState::PUBLISHED_AT) end it 'should be PUBLISHED_AT' do expect(@publish_state.value).to be(Qbrick::PublishState::PUBLISHED_AT) end end end
Version data entries
16 entries across 16 versions & 1 rubygems