Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active November 1, 2017 14:14
Show Gist options
  • Save domagude/521c0fc6dd8fd21afad04fecb2ddf868 to your computer and use it in GitHub Desktop.
Save domagude/521c0fc6dd8fd21afad04fecb2ddf868 to your computer and use it in GitHub Desktop.
...
context '#post_format_partial_path' do
it "returns a home_page partial's path" do
helper.stub(:current_page?).and_return(true)
expect(helper.post_format_partial_path).to (
eq 'posts/post/home_page'
)
end
it "returns a branch_page partial's path" do
helper.stub(:current_page?).and_return(false)
expect(helper.post_format_partial_path).to (
eq 'posts/post/branch_page'
)
end
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment