Skip to content

Commit 1f1f79f

Browse files
committed
Added following and followers controller spec
1 parent 60c2d06 commit 1f1f79f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/controllers/user_controller_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,13 @@
2727
post :follow, user_id: bob, :user => {:followee => mozart.id}
2828
expect(flash[:notice]).to eq("You're following #{mozart.username} now")
2929
end
30+
it('#following?') do
31+
get :following, user_id: bob
32+
response.should be_success
33+
end
34+
it ('#followers') do
35+
get :followers, user_id: bob
36+
response.should be_success
37+
end
3038
end
3139
end

0 commit comments

Comments
 (0)