Skip to content

Instantly share code, notes, and snippets.

@buethling
Created October 2, 2011 18:08
Show Gist options
  • Save buethling/1257715 to your computer and use it in GitHub Desktop.
Save buethling/1257715 to your computer and use it in GitHub Desktop.
Stories conntroller spec
context "for logged in user" do
before do
@user = Factory(:user)
@story = Factory(:story)
@user.follow! @story
end
it "should set turn if it's not set" do
get :show, :id => 1
assigns(:turn).should == "Mike Hoxhuge"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment