Skip to content

Commit 60c2d06

Browse files
committed
Added User controller follow spec
1 parent 1f73297 commit 60c2d06

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
@@ -20,4 +20,12 @@
2020
end
2121
end
2222
end
23+
24+
describe 'Following actions' do
25+
before { sign_in bob }
26+
it('#follow') do
27+
post :follow, user_id: bob, :user => {:followee => mozart.id}
28+
expect(flash[:notice]).to eq("You're following #{mozart.username} now")
29+
end
30+
end
2331
end

0 commit comments

Comments
 (0)