Skip to content

Instantly share code, notes, and snippets.

@buethling
Created October 12, 2011 01:27
Show Gist options
  • Save buethling/1279965 to your computer and use it in GitHub Desktop.
Save buethling/1279965 to your computer and use it in GitHub Desktop.
test
let(:stories) { 2.times.map { Story.create } }
it "should get all of them" do
stories = Story.all
assigns(:stories).should == stories
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment