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/helpers/ide_helper_spec.rb')
-rw-r--r--spec/helpers/ide_helper_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/helpers/ide_helper_spec.rb b/spec/helpers/ide_helper_spec.rb
index e5a39f6a24e..4a184f03935 100644
--- a/spec/helpers/ide_helper_spec.rb
+++ b/spec/helpers/ide_helper_spec.rb
@@ -21,6 +21,7 @@ RSpec.describe IdeHelper, feature_category: :web_ide do
'can-use-new-web-ide' => 'false',
'use-new-web-ide' => 'false',
'user-preferences-path' => profile_preferences_path,
+ 'sign-in-path' => 'test-sign-in-path',
'project' => nil,
'preview-markdown-path' => nil
}
@@ -29,6 +30,7 @@ RSpec.describe IdeHelper, feature_category: :web_ide do
before do
allow(helper).to receive(:current_user).and_return(user)
allow(helper).to receive(:content_security_policy_nonce).and_return('test-csp-nonce')
+ allow(helper).to receive(:new_session_path).and_return('test-sign-in-path')
end
it 'returns hash' do
@@ -99,6 +101,7 @@ RSpec.describe IdeHelper, feature_category: :web_ide do
'can-use-new-web-ide' => 'true',
'use-new-web-ide' => 'true',
'user-preferences-path' => profile_preferences_path,
+ 'sign-in-path' => 'test-sign-in-path',
'new-web-ide-help-page-path' =>
help_page_path('user/project/web_ide/index.md', anchor: 'vscode-reimplementation'),
'csp-nonce' => 'test-csp-nonce',