Last active
November 1, 2017 14:14
-
-
Save domagude/521c0fc6dd8fd21afad04fecb2ddf868 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 '#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