Skip to content

add spec for user behaviour#34

Closed
chimedpalden wants to merge 1 commit intofastruby:masterfrom
chimedpalden:user-behavior-spec
Closed

add spec for user behaviour#34
chimedpalden wants to merge 1 commit intofastruby:masterfrom
chimedpalden:user-behavior-spec

Conversation

@chimedpalden
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@etagwerker etagwerker left a comment

Choose a reason for hiding this comment

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

@chimedpalden Looks good, just one comment 👍


expect(users.entries.count).to eq(100)
expect(users.page).to eq(1)
users.send(:fetch_next_page)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@chimedpalden I think it's best to not know so much about the implementation of the pagination logic...

Could you change this scenario to iterate through user.entries 115 times? That should do what you expect it to do.

@etagwerker etagwerker requested a review from bronzdoc August 13, 2019 16:10
@bronzdoc
Copy link
Copy Markdown
Contributor

I'll pick this up

@bronzdoc bronzdoc self-assigned this Aug 14, 2019
@cleicar cleicar assigned cleicar and unassigned bronzdoc Oct 25, 2019
@bronzdoc
Copy link
Copy Markdown
Contributor

bronzdoc commented Dec 2, 2019

@cleicar are you going to work on this?

@bronzdoc bronzdoc assigned etagwerker and unassigned cleicar Jan 27, 2020
@etagwerker
Copy link
Copy Markdown
Member

@bronzdoc @chimedpalden I just reviewed this again and it seems that #17 added coverage for this behavior.

Thanks!

@etagwerker etagwerker closed this Jun 7, 2020
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.

4 participants