summaryrefslogtreecommitdiff
path: root/spec/features/cycle_analytics_spec.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2017-03-22 16:36:14 -0300
committerFelipe Artur <felipefac@gmail.com>2017-05-08 11:26:04 -0300
commit24824cbb4c6d2c5ebd08dea03007f65c5df763da (patch)
tree618cc1a50e76126e4aff941bd538a31917e5282b /spec/features/cycle_analytics_spec.rb
parent85f0b3a984048d1e5d146a233612a0bc96f12b5c (diff)
downloadgitlab-ce-24824cbb4c6d2c5ebd08dea03007f65c5df763da.tar.gz
Fix Specs
Diffstat (limited to 'spec/features/cycle_analytics_spec.rb')
-rw-r--r--spec/features/cycle_analytics_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/features/cycle_analytics_spec.rb b/spec/features/cycle_analytics_spec.rb
index df2714f91ff..57826fe872b 100644
--- a/spec/features/cycle_analytics_spec.rb
+++ b/spec/features/cycle_analytics_spec.rb
@@ -9,10 +9,13 @@ feature 'Cycle Analytics', feature: true, js: true do
let(:mr) { create_merge_request_closing_issue(issue, commit_message: "References #{issue.to_reference}") }
let(:pipeline) { create(:ci_empty_pipeline, status: 'created', project: project, ref: mr.source_branch, sha: mr.source_branch_sha) }
+ before { mr.update(head_pipeline: pipeline) }
+
context 'as an allowed user' do
context 'when project is new' do
before do
- project.team << [user, :master]
+ project.add_master(user)
+ mr.update(head_pipeline_id: pipeline.id)
login_as(user)
visit namespace_project_cycle_analytics_path(project.namespace, project)
wait_for_ajax