spec/integration/estimates_spec.rb in patch_ruby-1.8.0 vs spec/integration/estimates_spec.rb in patch_ruby-1.9.0

- old
+ new

@@ -1,12 +1,6 @@ RSpec.describe 'Estimates Integration' do - before do - Patch.configure do |config| - config.access_token = ENV['SANDBOX_API_KEY'] - end - end - it 'supports create, retrieve and list' do create_estimate_response = Patch::Estimate.create_mass_estimate(mass_g: 100) estimate_id = create_estimate_response.data.id retrieve_estimate_response = Patch::Estimate.retrieve_estimate(estimate_id) @@ -31,10 +25,10 @@ distance_m: distance_m, create_order: false ) expect(flight_estimate.data.type).to eq 'flight' - expect(flight_estimate.data.mass_g).to eq 1_031_697 + expect(flight_estimate.data.mass_g).to eq 1_000_622 end it 'supports creating vehicle estimates' do distance_m = 10_000 make = "Toyota"