Skip to content

Instantly share code, notes, and snippets.

@dchelimsky
Forked from zdennis/template.html.erb
Created February 20, 2009 01:30
Show Gist options
  • Save dchelimsky/67240 to your computer and use it in GitHub Desktop.
Save dchelimsky/67240 to your computer and use it in GitHub Desktop.
<%=h status %>
<% content_for :footer %>
<%=h footer %>
<% end %>
describe "statuses/_status.html.erb" do
it "should display the status" do
render :object => mock_model(Status)
response.should include_status
end
it_should_behave_like "a template that renders the footer"
end
shared_examples_for "a template that renders the footer" do
it "should render the footer" do
render # need to pass in footer local
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment