From d4892ace62cd5d73d7e4958bf98fe37244811c7f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 19 Mar 2016 12:13:47 +0100 Subject: Adding more test stubs --- spec/controllers/api/accounts_controller_spec.rb | 22 ++++++++++++++++++++++ spec/controllers/api/follows_controller_spec.rb | 4 +++- spec/controllers/api/statuses_controller_spec.rb | 22 ++++++++++++++++++++++ .../oauth/applications_controller_spec.rb | 6 ++++++ 4 files changed, 53 insertions(+), 1 deletion(-) (limited to 'spec/controllers') diff --git a/spec/controllers/api/accounts_controller_spec.rb b/spec/controllers/api/accounts_controller_spec.rb index b409611ce..915a40a8a 100644 --- a/spec/controllers/api/accounts_controller_spec.rb +++ b/spec/controllers/api/accounts_controller_spec.rb @@ -1,5 +1,27 @@ require 'rails_helper' RSpec.describe Api::AccountsController, type: :controller do + describe 'GET #show' do + it 'returns http success' + end + describe 'GET #statuses' do + it 'returns http success' + end + + describe 'GET #followers' do + it 'returns http success' + end + + describe 'GET #following' do + it 'returns http success' + end + + describe 'POST #follow' do + it 'returns http success' + end + + describe 'POST #unfollow' do + it 'returns http success' + end end diff --git a/spec/controllers/api/follows_controller_spec.rb b/spec/controllers/api/follows_controller_spec.rb index ba3f046dd..75f470181 100644 --- a/spec/controllers/api/follows_controller_spec.rb +++ b/spec/controllers/api/follows_controller_spec.rb @@ -1,5 +1,7 @@ require 'rails_helper' RSpec.describe Api::FollowsController, type: :controller do - + describe 'POST #create' do + it 'returns http success' + end end diff --git a/spec/controllers/api/statuses_controller_spec.rb b/spec/controllers/api/statuses_controller_spec.rb index bf84857bd..bd136a559 100644 --- a/spec/controllers/api/statuses_controller_spec.rb +++ b/spec/controllers/api/statuses_controller_spec.rb @@ -1,5 +1,27 @@ require 'rails_helper' RSpec.describe Api::StatusesController, type: :controller do + describe 'GET #show' do + it 'returns http success' + end + describe 'GET #home' do + it 'returns http success' + end + + describe 'GET #mentions' do + it 'returns http success' + end + + describe 'POST #create' do + it 'returns http success' + end + + describe 'POST #reblog' do + it 'returns http success' + end + + describe 'POST #favourite' do + it 'returns http success' + end end diff --git a/spec/controllers/oauth/applications_controller_spec.rb b/spec/controllers/oauth/applications_controller_spec.rb index 7f2ca8cd9..350d5d521 100644 --- a/spec/controllers/oauth/applications_controller_spec.rb +++ b/spec/controllers/oauth/applications_controller_spec.rb @@ -1,5 +1,11 @@ require 'rails_helper' RSpec.describe Oauth::ApplicationsController, type: :controller do + describe 'GET #index' do + it 'returns http success' + end + describe 'POST #create' do + it 'redirects to the application page' + end end -- cgit