Skip to content

Instantly share code, notes, and snippets.

@seventhsense
Created March 16, 2013 07:48
Show Gist options
  • Save seventhsense/5175436 to your computer and use it in GitHub Desktop.
Save seventhsense/5175436 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe "todos/show" do
before(:each) do
@todo = assign(:todo, stub_model(Todo,
:title => "Title",
:done => false
))
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
rendered.should match(/Title/)
rendered.should match(/false/)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment