Created
October 2, 2011 18:08
-
-
Save buethling/1257715 to your computer and use it in GitHub Desktop.
Stories conntroller spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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