diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-29 18:09:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-29 18:09:56 +0000 |
commit | 6f2dc439265369de7b1e1b18b208c6d66cf260eb (patch) | |
tree | c961526575126eafdd022ae7b496830dcf252002 /spec/controllers/projects/static_site_editor_controller_spec.rb | |
parent | 647de7e6fd971d435396cc8730a2d162240e3d7c (diff) | |
download | gitlab-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.rb | 5 |
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') } |