diff options
author | James Lopez <james@jameslopez.es> | 2016-11-16 12:01:10 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:59 +0100 |
commit | cf2dcf043c0054785bc0258ab6393104499b8d70 (patch) | |
tree | 1502646c438eb383a82f73d5a62f2b19b38d954c /spec/requests/projects | |
parent | cbc9f0cd1aa9f379952b6e4d3ad6df9971f9092a (diff) | |
download | gitlab-ce-cf2dcf043c0054785bc0258ab6393104499b8d70.tar.gz |
Refactor all query config stuff into separate classes and added specs
Diffstat (limited to 'spec/requests/projects')
-rw-r--r-- | spec/requests/projects/cycle_analytics_events_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/requests/projects/cycle_analytics_events_spec.rb b/spec/requests/projects/cycle_analytics_events_spec.rb index 280aa2152b1..1c78cd368db 100644 --- a/spec/requests/projects/cycle_analytics_events_spec.rb +++ b/spec/requests/projects/cycle_analytics_events_spec.rb @@ -12,6 +12,8 @@ describe 'cycle analytics events' do deploy_master login_as(user) + + allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([context]) end it 'lists the issue events' do @@ -143,6 +145,6 @@ describe 'cycle analytics events' do merge_merge_requests_closing_issue(issue) - Issue::Metrics.update_all(first_mentioned_in_commit_at: mr.commits.last.committed_date) + ProcessCommitWorker.new.perform(project.id, user.id, mr.commits.last.sha) end end |