Skip to content

Conversation

@funkyboy
Copy link
Contributor

Couldn't come up with a better idea at the moment :(

expect(presence_next_page.items.map(&:data).uniq.first).to eql(presence_data_before_attach)
expect(presence_next_page).to be_last
if !presence_next_page.has_next?
expect(presence_next_page).to be_last
Copy link
Member

Choose a reason for hiding this comment

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

Why did you not go with the same approach as the history test i.e. check the number of records in the next page if present, or expect last?

@funkyboy
Copy link
Contributor Author

@mattheworiordan you mean something like 20239cf ?

Copy link
Member

@mattheworiordan mattheworiordan left a comment

Choose a reason for hiding this comment

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

Yes

@funkyboy funkyboy merged commit 35603d7 into master Apr 24, 2018
@funkyboy funkyboy deleted the fix-presence-history-test branch April 24, 2018 09:46
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