Skip to content

Instantly share code, notes, and snippets.

@scudco
Created September 7, 2009 04:20
Show Gist options
  • Save scudco/182146 to your computer and use it in GitHub Desktop.
Save scudco/182146 to your computer and use it in GitHub Desktop.
<span id="business_name"><%= @business.name %></span>
describe "business #show in HTML" do
it "should render the business name" do
assigns[:business] = Factory(:business, :name => 'Foo Bar')
render 'businesses/show'
response.should have_tag('span#business_name', 'Foo Bar')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment