We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaff744 commit dcf66beCopy full SHA for dcf66be
spec/integration/estimates_spec.rb
@@ -39,7 +39,7 @@
39
it 'supports creating vehicle estimates' do
40
distance_m = 10_000
41
make = "Toyota"
42
- model = "Prius"
+ model = "Corolla"
43
year = 2000
44
45
vehicle_estimate = Patch::Estimate.create_vehicle_estimate(
@@ -50,6 +50,18 @@
50
create_order: false
51
)
52
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
65
expect(vehicle_estimate.data.type).to eq 'vehicle'
66
expect(vehicle_estimate.data.mass_g).to eq 2_132
67
end
0 commit comments