Skip to content

Commit

Permalink
- Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Dec 15, 2023
1 parent 5eb7780 commit e75f197
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Next Release

- Add `all_children` and `get_next_page_of_children` in beta `beta_user` service

## v6.0.0 (2023-12-06)

- Removes `with_carbon_offset` parameter from `create`, `buy` and `regenerate_rates` methods in the shipment service since now EasyPost offers carbon neutral shipments by default for free
Expand Down
8 changes: 4 additions & 4 deletions spec/beta_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
it 'retrieves all child users' do
children = client.beta_user.all_children(
page_size: Fixture.page_size,
)
)
expect(children[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).to be_a(Hash)

child_user_array = children.children
Expand All @@ -23,7 +23,7 @@
it 'retrieves the next page of a collection' do
first_page = client.beta_user.all_children(
page_size: Fixture.page_size,
)
)

begin
next_page = client.beta_user.get_next_page_of_children(first_page)
Expand All @@ -36,8 +36,8 @@

# Verify that filters are being passed along for internal reference
expect(first_page[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).to eq(
next_page[EasyPost::InternalUtilities::Constants::FILTERS_KEY],
)
next_page[EasyPost::InternalUtilities::Constants::FILTERS_KEY],
)
rescue EasyPost::Errors::EndOfPaginationError => e
# If we get an error, make sure it's because there are no more pages.
expect(e.message).to eq(EasyPost::Constants::NO_MORE_PAGES)
Expand Down

0 comments on commit e75f197

Please sign in to comment.