Created
July 5, 2012 20:41
-
-
Save brettfishman/3056288 to your computer and use it in GitHub Desktop.
Issue with ActionController::TemplateAssertions#assert_template
This file contains hidden or 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 "template name is substring of actual rendered template" do | |
it "will pass" do | |
get :hello_world | |
# The following line will pass, even though the template rendered is actually "accounts/hello_world" | |
response.should render_template "accounts/hello" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment