Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/organizations/organizations_controller_routing_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/routing/organizations/organizations_controller_routing_spec.rb b/spec/routing/organizations/organizations_controller_routing_spec.rb
index 5b6124300ba..2b43f6d3afa 100644
--- a/spec/routing/organizations/organizations_controller_routing_spec.rb
+++ b/spec/routing/organizations/organizations_controller_routing_spec.rb
@@ -5,8 +5,13 @@ require 'spec_helper'
RSpec.describe Organizations::OrganizationsController, :routing, feature_category: :cell do
let_it_be(:organization) { build(:organization) }
- it 'routes to #directory' do
- expect(get("/-/organizations/#{organization.path}/directory"))
- .to route_to('organizations/organizations#directory', organization_path: organization.path)
+ it 'routes to #show' do
+ expect(get("/-/organizations/#{organization.path}"))
+ .to route_to('organizations/organizations#show', organization_path: organization.path)
+ end
+
+ it 'routes to #groups_and_projects' do
+ expect(get("/-/organizations/#{organization.path}/groups_and_projects"))
+ .to route_to('organizations/organizations#groups_and_projects', organization_path: organization.path)
end
end