Permalink
Browse files

Added following and followers controller spec

  • Loading branch information...
1 parent 60c2d06 commit 1f1f79f620f7bda0c1d7180d34cd7661e0fa4045 @hcarreras hcarreras committed Feb 13, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/controllers/user_controller_spec.rb
@@ -27,5 +27,13 @@
post :follow, user_id: bob, :user => {:followee => mozart.id}
expect(flash[:notice]).to eq("You're following #{mozart.username} now")
end
+ it('#following?') do
+ get :following, user_id: bob
+ response.should be_success
+ end
+ it ('#followers') do
+ get :followers, user_id: bob
+ response.should be_success
+ end
end
end

0 comments on commit 1f1f79f

Please sign in to comment.