Sha256: 589a4370724dfbd323cc26702f808dd37dbd53fe12a848f0dd864244fb630f1c

Contents?: true

Size: 681 Bytes

Versions: 27

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'
require 'spec/support/provider_state_builder'
require 'pact_broker/domain/order_versions.rb'

describe PactBroker::Domain::OrderVersions do


  before do
    ProviderStateBuilder.new
      .create_condor
      .create_condor_version('1.3.0')
      .create_condor_version('1.5.0')
      .create_condor_version('1.4.0')
  end

  let(:ordered_versions) { PactBroker::Domain::Version.order(:order).all.collect(&:number) }
  let(:condor) { PactBroker::Domain::Pacticipant.where(name: 'Condor').single_record }

  it "orders the versions so they can be loaded from the database in order" do
    expect(ordered_versions).to eq(['1.3.0','1.4.0', '1.5.0'])
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pact_broker-2.0.0.beta.6 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-2.0.0.beta.5 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.18.0.beta.1 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.17.2 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.17.1 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-2.0.0.beta.4 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-2.0.0.beta.3 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-2.0.0.beta.2 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-2.0.0.beta.1 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.17.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.16.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.15.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.14.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.13.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.12.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.11.2 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.11.1 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.11.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.10.0 spec/lib/pact_broker/domain/order_versions_spec.rb
pact_broker-1.9.3 spec/lib/pact_broker/domain/order_versions_spec.rb