Skip to content

Instantly share code, notes, and snippets.

@brettfishman
Created July 5, 2012 20:41
Show Gist options
  • Save brettfishman/3056288 to your computer and use it in GitHub Desktop.
Save brettfishman/3056288 to your computer and use it in GitHub Desktop.
Issue with ActionController::TemplateAssertions#assert_template
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