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

Version Path
qbrick-2.7.1 spec/models/publish_state_spec.rb
qbrick-2.7 spec/models/publish_state_spec.rb
qbrick-2.6.10 spec/models/publish_state_spec.rb
qbrick-2.6.9 spec/models/publish_state_spec.rb
qbrick-2.6.8 spec/models/publish_state_spec.rb
qbrick-2.6.7 spec/models/publish_state_spec.rb
qbrick-2.6.6 spec/models/publish_state_spec.rb
qbrick-2.6.5 spec/models/publish_state_spec.rb
qbrick-2.6.4 spec/models/publish_state_spec.rb
qbrick-2.6.3 spec/models/publish_state_spec.rb
qbrick-2.6.2 spec/models/publish_state_spec.rb
qbrick-2.6.1 spec/models/publish_state_spec.rb
qbrick-2.6.0 spec/models/publish_state_spec.rb
qbrick-2.5.2 spec/models/publish_state_spec.rb
qbrick-2.5.1 spec/models/publish_state_spec.rb
qbrick-2.5.0 spec/models/publish_state_spec.rb