Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active December 3, 2017 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/7f97f68eb0015a0164db85193d6d4c79 to your computer and use it in GitHub Desktop.
Save domagude/7f97f68eb0015a0164db85193d6d4c79 to your computer and use it in GitHub Desktop.
context '#update_pagination_partial_path' do
it "returns an update_pagination partial's path" do
posts = double('posts', :next_page => 2)
assign(:posts, posts)
expect(helper.update_pagination_partial_path).to(
eq 'posts/posts_pagination_page/update_pagination'
)
end
it "returns a remove_pagination partial's path" do
posts = double('posts', :next_page => nil)
assign(:posts, posts)
expect(helper.update_pagination_partial_path).to(
eq 'posts/posts_pagination_page/remove_pagination'
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment