diff options
Diffstat (limited to 'spec/requests/organizations/organizations_controller_spec.rb')
-rw-r--r-- | spec/requests/organizations/organizations_controller_spec.rb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/spec/requests/organizations/organizations_controller_spec.rb b/spec/requests/organizations/organizations_controller_spec.rb index a51a5751831..bd54b50de99 100644 --- a/spec/requests/organizations/organizations_controller_spec.rb +++ b/spec/requests/organizations/organizations_controller_spec.rb @@ -5,9 +5,7 @@ require 'spec_helper' RSpec.describe Organizations::OrganizationsController, feature_category: :cell do let_it_be(:organization) { create(:organization) } - describe 'GET #directory' do - subject(:gitlab_request) { get directory_organization_path(organization) } - + RSpec.shared_examples 'basic organization controller action' do before do sign_in(user) end @@ -42,4 +40,16 @@ RSpec.describe Organizations::OrganizationsController, feature_category: :cell d end end end + + describe 'GET #show' do + subject(:gitlab_request) { get organization_path(organization) } + + it_behaves_like 'basic organization controller action' + end + + describe 'GET #groups_and_projects' do + subject(:gitlab_request) { get groups_and_projects_organization_path(organization) } + + it_behaves_like 'basic organization controller action' + end end |