Permalink
Browse files

Added User controller follow spec

  • Loading branch information...
1 parent 1f73297 commit 60c2d069096c76834a5da61be484721d6ed677f8 @hcarreras hcarreras committed Feb 13, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/controllers/user_controller_spec.rb
@@ -20,4 +20,12 @@
end
end
end
+
+ describe 'Following actions' do
+ before { sign_in bob }
+ it('#follow') do
+ post :follow, user_id: bob, :user => {:followee => mozart.id}
+ expect(flash[:notice]).to eq("You're following #{mozart.username} now")
+ end
+ end
end

0 comments on commit 60c2d06

Please sign in to comment.