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

Uniformize stats and history interfaces. #248

Merged
merged 2 commits into from
Feb 24, 2016
Merged

Conversation

tcard
Copy link
Contributor

@tcard tcard commented Feb 23, 2016

We changed Channel.history, but left Presence.history and stats behind.

let error = client.stats(query, callback:{ status, result in })
expect(error).toNot(beNil())
do {
try client.stats(query, callback:{ status, result in })
Copy link
Contributor

Choose a reason for hiding this comment

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

You can expect it like: expect{ try somethingThatThrows() }.to(throwError()) or even with

expect{ try somethingThatThrows() }.to(throwError { (error: ErrorType) in
    expect(error._domain).to(equal(NSCocoaErrorDomain))
})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, much nicer. Fixed at 8e5e188.

@mattheworiordan
Copy link
Member

LGTM

@tcard tcard force-pushed the uniform-history-stats branch from 8e5e188 to e71cc2c Compare February 24, 2016 20:42
tcard added a commit that referenced this pull request Feb 24, 2016
Uniformize stats and history interfaces.
@tcard tcard merged commit 204d4e7 into master Feb 24, 2016
@tcard tcard deleted the uniform-history-stats branch February 24, 2016 20:42
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