summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/static_site_editor_controller_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-29 18:09:56 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-29 18:09:56 +0000
commit6f2dc439265369de7b1e1b18b208c6d66cf260eb (patch)
treec961526575126eafdd022ae7b496830dcf252002 /spec/controllers/projects/static_site_editor_controller_spec.rb
parent647de7e6fd971d435396cc8730a2d162240e3d7c (diff)
downloadgitlab-ce-6f2dc439265369de7b1e1b18b208c6d66cf260eb.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/projects/static_site_editor_controller_spec.rb')
-rw-r--r--spec/controllers/projects/static_site_editor_controller_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/projects/static_site_editor_controller_spec.rb b/spec/controllers/projects/static_site_editor_controller_spec.rb
index f7c8848b8cf..f5d93122f59 100644
--- a/spec/controllers/projects/static_site_editor_controller_spec.rb
+++ b/spec/controllers/projects/static_site_editor_controller_spec.rb
@@ -58,6 +58,11 @@ describe Projects::StaticSiteEditorController do
expect(assigns(:config)).to be_a(Gitlab::StaticSiteEditor::Config)
end
+ it 'correctly assigns ref and path' do
+ expect(assigns(:ref)).to eq('master')
+ expect(assigns(:path)).to eq('README.md')
+ end
+
context 'when combination of ref and file path is incorrect' do
let(:default_params) { super().merge(id: 'unknown') }