diff options
Diffstat (limited to 'spec/helpers/ide_helper_spec.rb')
-rw-r--r-- | spec/helpers/ide_helper_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/helpers/ide_helper_spec.rb b/spec/helpers/ide_helper_spec.rb index 447967fd345..29b2784412e 100644 --- a/spec/helpers/ide_helper_spec.rb +++ b/spec/helpers/ide_helper_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -RSpec.describe IdeHelper do +RSpec.describe IdeHelper, feature_category: :web_ide do describe '#ide_data' do let_it_be(:project) { create(:project) } let_it_be(:user) { project.creator } @@ -18,6 +18,8 @@ RSpec.describe IdeHelper do self.instance_variable_set(:@branch, 'master') self.instance_variable_set(:@project, project) + self.instance_variable_set(:@path, 'foo/README.md') + self.instance_variable_set(:@merge_request, '7') end it 'returns hash' do @@ -30,7 +32,11 @@ RSpec.describe IdeHelper do help_page_path('user/project/web_ide/index.md', anchor: 'vscode-reimplementation'), 'branch-name' => 'master', 'project-path' => project.path_with_namespace, - 'csp-nonce' => 'test-csp-nonce' + 'csp-nonce' => 'test-csp-nonce', + 'ide-remote-path' => ide_remote_path(remote_host: ':remote_host', remote_path: ':remote_path'), + 'file-path' => 'foo/README.md', + 'merge-request' => '7', + 'fork-info' => nil ) end |