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

RSC7a #483

Merged
merged 1 commit into from
Sep 8, 2016
Merged

RSC7a #483

merged 1 commit into from
Sep 8, 2016

Conversation

ricardopereira
Copy link
Contributor

No description provided.

fail("X-Ably-Version header not found"); done()
return
}
expect(headerAblyVersion) == ARTDefault.version()
Copy link
Member

Choose a reason for hiding this comment

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

Whilst I appreciate this test is accurate, I think it would be useful to in fact be a more explicit and expect 0.8 for example in the string. I appreciate when we upgrade to 0.9 it will break, but personally I like that as the test expectation has broken. For example, if someone mistakenly upgrade to 0.99, this test would continue to pass

Copy link
Contributor Author

@ricardopereira ricardopereira Sep 2, 2016

Choose a reason for hiding this comment

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

@mattheworiordan There is already a G4 /~https://github.com/ably/ably-ios/blob/b3fdead2e828bf472bc51f3364e4118b8459b817/Spec/RestClient.swift#L32.
The current test is verifying if the client conforms with defaults.

Copy link
Member

Choose a reason for hiding this comment

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

Fine, thanks for clarifying

@tcard
Copy link
Contributor

tcard commented Sep 7, 2016

LGTM, @mattheworiordan please confirm you're OK with having the explicit test at a single place as @ricardopereira says.

@mattheworiordan
Copy link
Member

@tcard happy for it to be merged

@tcard tcard merged commit 261bb8f into master Sep 8, 2016
@tcard tcard deleted the rsc7a branch September 8, 2016 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants