Skip to content

Commit dcf66be

Browse files
committed
spec create vehicle estimates with limited info
1 parent aaff744 commit dcf66be

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spec/integration/estimates_spec.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
it 'supports creating vehicle estimates' do
4040
distance_m = 10_000
4141
make = "Toyota"
42-
model = "Prius"
42+
model = "Corolla"
4343
year = 2000
4444

4545
vehicle_estimate = Patch::Estimate.create_vehicle_estimate(
@@ -50,6 +50,18 @@
5050
create_order: false
5151
)
5252

53+
expect(vehicle_estimate.data.type).to eq 'vehicle'
54+
expect(vehicle_estimate.data.mass_g).to eq 5_500
55+
end
56+
57+
it 'supports creating vehicle estimates with partial information' do
58+
distance_m = 10_000
59+
60+
vehicle_estimate = Patch::Estimate.create_vehicle_estimate(
61+
distance_m: distance_m,
62+
create_order: false
63+
)
64+
5365
expect(vehicle_estimate.data.type).to eq 'vehicle'
5466
expect(vehicle_estimate.data.mass_g).to eq 2_132
5567
end

0 commit comments

Comments
 (0)