Skip to content

Instantly share code, notes, and snippets.

@buethling
Created October 12, 2011 01:48
Show Gist options
  • Save buethling/1279996 to your computer and use it in GitHub Desktop.
Save buethling/1279996 to your computer and use it in GitHub Desktop.
blah
22 let(:stories) { 2.times.map { Factory.create :story } }
23 it "should get all stories" do
24 @admin = Factory(:user, :email => "admin@test.com", :admin => true)
25 User.all.each { |u| puts u.inspect }
26 test_sign_in(@admin)
27 get 'admin'
28 assigns(:stories).should eq(stories)
29 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment