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/organizations/settings_controller_routing_spec.rb')
-rw-r--r--spec/routing/organizations/settings_controller_routing_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/routing/organizations/settings_controller_routing_spec.rb b/spec/routing/organizations/settings_controller_routing_spec.rb
new file mode 100644
index 00000000000..99d482f3d47
--- /dev/null
+++ b/spec/routing/organizations/settings_controller_routing_spec.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe Organizations::SettingsController, :routing, feature_category: :cell do
+ let_it_be(:organization) { build(:organization) }
+
+ it 'routes to settings#general' do
+ expect(get("/-/organizations/#{organization.path}/settings/general"))
+ .to route_to('organizations/settings#general', organization_path: organization.path)
+ end
+end