diff options
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/merge_request_widget_entity_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/serializers/merge_request_widget_entity_spec.rb b/spec/serializers/merge_request_widget_entity_spec.rb index beb6a0de0f6..31f8bcbfef0 100644 --- a/spec/serializers/merge_request_widget_entity_spec.rb +++ b/spec/serializers/merge_request_widget_entity_spec.rb @@ -162,6 +162,13 @@ describe MergeRequestWidgetEntity do .to eq('Maintainer') end + it 'has new pipeline path for project' do + project.add_maintainer(user) + + expect(subject[:new_project_pipeline_path]) + .to eq("/#{resource.project.full_path}/pipelines/new") + end + describe 'when source project is deleted' do let(:project) { create(:project, :repository) } let(:forked_project) { fork_project(project) } |