Created
September 8, 2011 10:17
-
-
Save jbpros/1203086 to your computer and use it in GitHub Desktop.
Expect yielding a content_for block in a view spec (rspec)
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
it "yields the footer" do | |
footer = "the footer contents" | |
view.content_for(:footer) { footer } | |
render | |
rendered.should have_content footer | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment