spec/integration/estimates_spec.rb in patch_ruby-1.20.0 vs spec/integration/estimates_spec.rb in patch_ruby-1.21.0
- old
+ new
@@ -25,11 +25,11 @@
distance_m: distance_m,
create_order: false
)
expect(flight_estimate.data.type).to eq 'flight'
- expect(flight_estimate.data.mass_g).to eq 1_000_622
+ expect(flight_estimate.data.mass_g).to be >= 1_000_000
end
it 'supports creating flight estimates with origin and destination' do
flight_estimate = Patch::Estimate.create_flight_estimate(
origin_airport: "SFO",
@@ -58,11 +58,11 @@
year: year,
create_order: true
)
expect(vehicle_estimate.data.type).to eq 'vehicle'
- expect(vehicle_estimate.data.mass_g).to eq 5_500
- expect(vehicle_estimate.data.order.mass_g).to eq 5_500
+ expect(vehicle_estimate.data.mass_g).to be >= 1_000
+ expect(vehicle_estimate.data.order.amount).to be >= 1_000
end
it 'supports creating vehicle estimates with partial information' do
distance_m = 10_000