diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-15 16:23:39 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-28 13:46:20 +0300 |
commit | 335ee79a73fafdf00fac6e8ffc286ce4bad273ff (patch) | |
tree | d30033fd007c992448ce02f42e46f9da48e223cb /spec/features | |
parent | 3f31da9c69c550d1698a1376e37d36f4e6e309b5 (diff) |
Refactors median code to work with both single and multiple projects
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/cycle_analytics_spec.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/spec/features/cycle_analytics_spec.rb b/spec/features/cycle_analytics_spec.rb index 510677ecf56..ce7c0cac9d8 100644 --- a/spec/features/cycle_analytics_spec.rb +++ b/spec/features/cycle_analytics_spec.rb @@ -41,7 +41,7 @@ feature 'Cycle Analytics', :js do allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([issue]) project.add_master(user) - create_cycle + @build = create_cycle(user, project, issue, mr, milestone, pipeline) deploy_master sign_in(user) @@ -117,7 +117,7 @@ feature 'Cycle Analytics', :js do project.add_guest(guest) allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([issue]) - create_cycle + create_cycle(user, project, issue, mr, milestone, pipeline) deploy_master sign_in(guest) @@ -166,16 +166,6 @@ feature 'Cycle Analytics', :js do expect(find('.stage-events')).to have_content("!#{mr.iid}") end - def create_cycle - issue.update(milestone: milestone) - pipeline.run - - @build = create(:ci_build, pipeline: pipeline, status: :success, author: user) - - merge_merge_requests_closing_issue(issue) - ProcessCommitWorker.new.perform(project.id, user.id, mr.commits.last.to_hash) - end - def click_stage(stage_name) find('.stage-nav li', text: stage_name).click wait_for_requests |