Last active
December 3, 2017 09:06
-
-
Save domagude/7f97f68eb0015a0164db85193d6d4c79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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