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