Skip to content

Instantly share code, notes, and snippets.

@kurowski
Created March 29, 2009 00:36
Show Gist options
  • Save kurowski/87246 to your computer and use it in GitHub Desktop.
Save kurowski/87246 to your computer and use it in GitHub Desktop.
describe "/layouts/application" do
it "should show the content" do
class << template
attr_accessor :did_render_content
end
template.did_render_content = false
render :inline => "<% self.did_render_content = true %>", :layout => 'application'
template.did_render_content.should be_true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment