Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 updates #50

Merged
merged 23 commits into from
Mar 31, 2017
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0866750
v3 changes (all just example changes in the README)
daria-lamberson Mar 24, 2017
a9c38ea
cleaned up styling
daria-lamberson Mar 24, 2017
06eb599
last few changes by searching for changed fields
daria-lamberson Mar 24, 2017
97542aa
removed object purpose from address param examples
daria-lamberson Mar 24, 2017
bbb35cb
removed object_[x] attrs from shipment apiobject example
daria-lamberson Mar 24, 2017
3198a43
removed shipment.state example
daria-lamberson Mar 24, 2017
2c38c58
fixed requirement
daria-lamberson Mar 24, 2017
358bf8e
updated api_object file
daria-lamberson Mar 24, 2017
4380589
removed object_status, since it will just be in the object dict under…
daria-lamberson Mar 24, 2017
b37ff8e
added back status because it's used in a few places still
daria-lamberson Mar 24, 2017
a338e77
chnged is_return example value from nil to false
daria-lamberson Mar 27, 2017
cc5fb6c
Merge branch 'master' into v3-updates
daria-lamberson Mar 30, 2017
110e5dc
Merge branch 'master' of https://github.com/goshippo/shippo-ruby-clie…
Mar 30, 2017
57627d2
removed fields for v3 update in examples
daria-lamberson Mar 30, 2017
b40344e
Merge branch 'v3-updates' of https://github.com/goshippo/shippo-ruby-…
Mar 30, 2017
ddda4ce
Update Shippo version to v3 in tests
Mar 31, 2017
278ad80
Update object_status to status
Mar 31, 2017
d0bcc81
Update fixtures
Mar 31, 2017
fa3764a
updated changelog and readme before updating gem
daria-lamberson Mar 31, 2017
52f754a
updated gem version
daria-lamberson Mar 31, 2017
4e46846
updated changelog header size inconsistency
daria-lamberson Mar 31, 2017
60f9f20
expanded parcel and changed to plural
daria-lamberson Mar 31, 2017
dcea188
changed more 'parcel's to be plural
daria-lamberson Mar 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update object_status to status
  • Loading branch information
Vinh Vu committed Mar 31, 2017
commit 278ad809c74c4b1f481709b218c9bfaba92a2b01
6 changes: 3 additions & 3 deletions spec/shippo/api/model/batch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def retrieve_valid_batch(id)
until retries == 0 do
sleep 1
retrieve = Shippo::Batch::get(id)
break if retrieve[:object_status] == 'VALID'
break if retrieve[:status] == 'VALID'
retries -= 1
end
STDERR.puts 'Unable to retrieve VALID Batch object' unless retrieve
Expand All @@ -26,7 +26,7 @@ def retrieve_valid_batch(id)
VCR.use_cassette('batch/test_create') do
batch = Shippo::Batch::create(dummy_batch.dup)
expect(batch).to be_kind_of(Shippo::Batch)
expect(batch[:object_status]).to be == 'VALIDATING'
expect(batch[:status]).to be == 'VALIDATING'
end
end
end
Expand Down Expand Up @@ -135,7 +135,7 @@ def retrieve_valid_batch(id)
batch = Shippo::Batch::create(dummy_batch.dup)
retrieve = retrieve_valid_batch(batch[:object_id])
purchase = Shippo::Batch::purchase(retrieve[:object_id])
expect(purchase[:object_status]).to be == 'PURCHASING'
expect(purchase[:status]).to be == 'PURCHASING'
end
end
end
Expand Down