summaryrefslogtreecommitdiff
path: root/spec/requests/projects
diff options
context:
space:
mode:
authorGosia Ksionek <mksionek@gitlab.com>2019-06-17 13:17:18 +0000
committerJames Lopez <james@gitlab.com>2019-06-17 13:17:18 +0000
commit976b8b5391199f18a099021639e206f8acc52008 (patch)
tree64b0947ff325b54fe841cd5f10619628ecd6de80 /spec/requests/projects
parentea1aa785733d654ac11b239b121ba2acbc183406 (diff)
downloadgitlab-ce-976b8b5391199f18a099021639e206f8acc52008.tar.gz
Fix plan stage query
Fix plan stage query and the way it is displayed
Diffstat (limited to 'spec/requests/projects')
-rw-r--r--spec/requests/projects/cycle_analytics_events_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/projects/cycle_analytics_events_spec.rb b/spec/requests/projects/cycle_analytics_events_spec.rb
index 49412b628b3..25390f8a23e 100644
--- a/spec/requests/projects/cycle_analytics_events_spec.rb
+++ b/spec/requests/projects/cycle_analytics_events_spec.rb
@@ -32,10 +32,10 @@ describe 'cycle analytics events' do
it 'lists the plan events' do
get project_cycle_analytics_plan_path(project, format: :json)
- first_mr_short_sha = project.merge_requests.sort_by_attribute(:created_asc).first.commits.first.short_id
+ first_issue_iid = project.issues.sort_by_attribute(:created_desc).pluck(:iid).first.to_s
expect(json_response['events']).not_to be_empty
- expect(json_response['events'].first['short_sha']).to eq(first_mr_short_sha)
+ expect(json_response['events'].first['iid']).to eq(first_issue_iid)
end
it 'lists the code events' do