|
90 | 90 | expect(create_estimate_response.data.mass_g).to be >= 10_000 |
91 | 91 | end |
92 | 92 |
|
93 | | - |
94 | 93 | it 'supports creating bitcoin estimates with partial information' do |
95 | 94 | bitcoin_estimate = Patch::Estimate.create_bitcoin_estimate() |
96 | 95 |
|
|
182 | 181 | origin_airport: "SFO" |
183 | 182 | ) |
184 | 183 | expect(air_shipping_estimate.data.type).to eq('shipping_air') |
185 | | - expect(air_shipping_estimate.data.mass_g).to be >= 20_000 |
| 184 | + expect(air_shipping_estimate.data.mass_g).to be > 0 |
186 | 185 | end |
187 | 186 |
|
188 | 187 | it "supports creating an estimate with an order" do |
|
194 | 193 | origin_airport: "SFO" |
195 | 194 | ) |
196 | 195 | expect(air_shipping_estimate.data.type).to eq('shipping_air') |
197 | | - expect(air_shipping_estimate.data.mass_g).to be >= 20_000 |
198 | | - expect(air_shipping_estimate.data.order.amount).to be >= 10_000 |
| 196 | + expect(air_shipping_estimate.data.mass_g).to be > 0 |
| 197 | + expect(air_shipping_estimate.data.order.amount).to be > 0 |
199 | 198 | end |
200 | 199 | end |
201 | 200 |
|
|
210 | 209 | origin_locode: "USSD2" |
211 | 210 | ) |
212 | 211 | expect(rail_shipping_estimate.data.type).to eq('shipping_rail') |
213 | | - expect(rail_shipping_estimate.data.mass_g).to be >= 15_000 |
| 212 | + expect(rail_shipping_estimate.data.mass_g).to be > 0 |
214 | 213 | end |
215 | 214 |
|
216 | 215 | it "supports creating an estimate using postal codes" do |
|
225 | 224 | origin_postal_code: "90210" |
226 | 225 | ) |
227 | 226 | expect(rail_shipping_estimate.data.type).to eq('shipping_rail') |
228 | | - expect(rail_shipping_estimate.data.mass_g).to be >= 4_000 |
| 227 | + expect(rail_shipping_estimate.data.mass_g).to be > 0 |
229 | 228 | end |
230 | 229 |
|
231 | 230 | it "supports creating an estimate with an order" do |
|
236 | 235 | origin_locode: "USSD2" |
237 | 236 | ) |
238 | 237 | expect(rail_shipping_estimate.data.type).to eq('shipping_rail') |
239 | | - expect(rail_shipping_estimate.data.mass_g).to be >= 15_000 |
240 | | - expect(rail_shipping_estimate.data.order.amount).to be >= 10_000 |
| 238 | + expect(rail_shipping_estimate.data.mass_g).to be > 0 |
| 239 | + expect(rail_shipping_estimate.data.order.amount).to be > 0 |
241 | 240 | end |
242 | 241 | end |
243 | 242 |
|
|
252 | 251 | origin_locode: "USSD2" |
253 | 252 | ) |
254 | 253 | expect(road_shipping_estimate.data.type).to eq('shipping_road') |
255 | | - expect(road_shipping_estimate.data.mass_g).to be >= 15_000 |
| 254 | + expect(road_shipping_estimate.data.mass_g).to be > 0 |
256 | 255 | end |
257 | 256 |
|
258 | 257 | it "supports creating an estimate using postal codes" do |
|
266 | 265 | origin_postal_code: "90210" |
267 | 266 | ) |
268 | 267 | expect(road_shipping_estimate.data.type).to eq('shipping_road') |
269 | | - expect(road_shipping_estimate.data.mass_g).to be >= 4_000 |
| 268 | + expect(road_shipping_estimate.data.mass_g).to be > 0 |
270 | 269 | end |
271 | 270 |
|
272 | 271 | it "supports creating an estimate with an order" do |
|
277 | 276 | origin_locode: "USSD2" |
278 | 277 | ) |
279 | 278 | expect(road_shipping_estimate.data.type).to eq('shipping_road') |
280 | | - expect(road_shipping_estimate.data.mass_g).to be >= 15_000 |
281 | | - expect(road_shipping_estimate.data.order.amount).to be >= 10_000 |
| 279 | + expect(road_shipping_estimate.data.mass_g).to be > 0 |
| 280 | + expect(road_shipping_estimate.data.order.amount).to be > 0 |
282 | 281 | end |
283 | 282 | end |
284 | 283 |
|
|
293 | 292 | origin_locode: "FRMRS" |
294 | 293 | ) |
295 | 294 | expect(sea_shipping_estimate.data.type).to eq('shipping_sea') |
296 | | - expect(sea_shipping_estimate.data.mass_g).to be >= 10_000 |
| 295 | + expect(sea_shipping_estimate.data.mass_g).to be > 0 |
297 | 296 | end |
298 | 297 |
|
299 | 298 | it "supports creating an estimate using postal codes" do |
|
307 | 306 | origin_postal_code: "90210" |
308 | 307 | ) |
309 | 308 | expect(sea_shipping_estimate.data.type).to eq('shipping_sea') |
310 | | - expect(sea_shipping_estimate.data.mass_g).to be >= 4_000 |
| 309 | + expect(sea_shipping_estimate.data.mass_g).to be > 0 |
311 | 310 | end |
312 | 311 |
|
313 | 312 | it "supports creating an estimate with an order" do |
|
318 | 317 | origin_locode: "USSD2" |
319 | 318 | ) |
320 | 319 | expect(sea_shipping_estimate.data.type).to eq('shipping_sea') |
321 | | - expect(sea_shipping_estimate.data.mass_g).to be >= 15_000 |
322 | | - expect(sea_shipping_estimate.data.order.amount).to be >= 10_000 |
| 320 | + expect(sea_shipping_estimate.data.mass_g).to be > 0 |
| 321 | + expect(sea_shipping_estimate.data.order.amount).to be > 0 |
323 | 322 | end |
324 | 323 | end |
325 | 324 | end |
0 commit comments