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

Adds current_ride endpoint to passenger API #91

Merged
merged 2 commits into from Apr 20, 2022
Merged

Conversation

eikes
Copy link
Collaborator

@eikes eikes commented Apr 15, 2022

No description provided.

@eikes eikes force-pushed the passenger_api_improvements branch from 8a05996 to ca53476 Compare April 15, 2022 12:51
@eikes eikes requested review from A5308Y and ans-ioki April 15, 2022 12:51
@@ -31,8 +31,7 @@
result_with_index_data
end

expect(passenger_client.products(options)).
to eq([Ioki::Model::Passenger::Product.new])
expect(passenger_client.products(options)).to all(be_a(Ioki::Model::Passenger::Product))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nicer to me, but technically we lose some specificity because we don't test anymore that the result is the "empty" version of a product.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True! But given that there are no attributes, this isn't very meaningful.

@eikes eikes merged commit 0ce2992 into main Apr 20, 2022
@eikes eikes deleted the passenger_api_improvements branch April 20, 2022 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants