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

Update failing specs #33

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

ramhoj
Copy link

@ramhoj ramhoj commented Jan 24, 2022

Nicklas Ramhöj added 10 commits January 24, 2022 19:37
This commit fixes an issue where all requests
would fail due to no method error.
The toggl API is no longer reachable on the www
subdomain.

This commit updates the URL to match the new
documented URL. See https://github.com/toggl/toggl_api_docs
for more details.
When CSV data is returned EncodingError is raised.
The existing implementation	 expected Oj::ParseError
but EncodeError is raised when a csv response
is returned.

This commit keeps extends the rescue to also
capture EncodeError.
The sort order of users may have changed by the
API. This commit sorts the response so that
the sort order is deterministic.
The API now returns a guid which we can’t
deterministically match against.

This commit loosens up the assert some what so
that it matches even if there are additional
keys.
The API now returns 404 on zombie time entries.

This commit updates the assertion to match.
This commit fixes a test that failed due to the time zone being formatted differently.
This commit uses the previously introduced spec
helper method to ease asserting against time
entries.
The API seems to no longer return a list of
request.

This commit updates the spec to assert against
an empty response body instead.
@kyrofa
Copy link

kyrofa commented Mar 25, 2022

@kanet77 can we get some eyes on this? The gem is pretty broken and is starting to look a bit deserted. If you need some help maintaining, shout! It seems like we're all maintaining our own forks otherwise.

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.

2 participants