Skip to content

Commit

Permalink
Add tests and fix some apis
Browse files Browse the repository at this point in the history
  • Loading branch information
spidergears committed Apr 20, 2017
1 parent f80478f commit 7caeed2
Show file tree
Hide file tree
Showing 26 changed files with 798 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/delhivery/services/package_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def create(params)
connection.post(create_path, formatted_param, {'Content-Type': 'application/x-www-form-urlencoded'})
end

def track_with_waybill_numbers(*waybill_numbers)
connection.get(track_path, waybill: waybill_numbers.join(','))
def track_with_waybill_numbers(*waybill_numbers, verbose: 2)
connection.get(track_path, {waybill: waybill_numbers.join(','), verbose: verbose})
end

def track_with_ref_numbers(*ref_numbers)
Expand Down
44 changes: 44 additions & 0 deletions spec/fixtures/vcr_cassettes/invoice_service_create.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

180 changes: 180 additions & 0 deletions spec/fixtures/vcr_cassettes/package_service_cancel.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/fixtures/vcr_cassettes/package_service_create.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7caeed2

Please sign in to comment.