Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added following and followers controller spec

  • Loading branch information...
commit 1f1f79f620f7bda0c1d7180d34cd7661e0fa4045 1 parent 60c2d06
Hari hcarreras authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/controllers/user_controller_spec.rb
8 spec/controllers/user_controller_spec.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.