diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-19 14:02:30 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-19 14:02:30 +0100 |
commit | 71ae4dd3d2dbafc1ef6e7716c379d01ea194aafe (patch) | |
tree | 024ff59a43fb775105dd9936a094fb206725231e /spec/controllers/accounts_controller_spec.rb | |
parent | c349200761bdbf5beac22648da07b0768addc4d6 (diff) |
Adding public following and followers pages, fix #3
Diffstat (limited to 'spec/controllers/accounts_controller_spec.rb')
-rw-r--r-- | spec/controllers/accounts_controller_spec.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/spec/controllers/accounts_controller_spec.rb b/spec/controllers/accounts_controller_spec.rb index b1646b314..b0a5181da 100644 --- a/spec/controllers/accounts_controller_spec.rb +++ b/spec/controllers/accounts_controller_spec.rb @@ -4,14 +4,28 @@ RSpec.describe AccountsController, type: :controller do let(:alice) { Fabricate(:account, username: 'alice') } describe 'GET #show' do - it 'returns 200' do + it 'returns http success' do get :show, username: alice.username expect(response).to have_http_status(:success) end - it 'returns 200 with Atom' do + it 'returns http success with Atom' do get :show, username: alice.username, format: 'atom' expect(response).to have_http_status(:success) end end + + describe 'GET #followers' do + it 'returns http success' do + get :followers, username: alice.username + expect(response).to have_http_status(:success) + end + end + + describe 'GET #following' do + it 'returns http success' do + get :following, username: alice.username + expect(response).to have_http_status(:success) + end + end end |