Skip to content

Instantly share code, notes, and snippets.

@zdennis
Created February 20, 2009 01:27
Show Gist options
  • Select an option

  • Save zdennis/67238 to your computer and use it in GitHub Desktop.

Select an option

Save zdennis/67238 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 # we need to pass in status local
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