diff options
author | Stan Hu <stanhu@gmail.com> | 2017-07-11 03:14:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-07-11 03:14:00 +0300 |
commit | cd7f03ef83ab5657a6fb31f5e54f0cf3c67b4f72 (patch) | |
tree | 289f833a22c4037652e6c173f04239b9310dc6ac /spec/helpers | |
parent | 31ada792621f17ab7f4f7475405ddd1ec9e9673a (diff) |
Fix spec/helpers/award_emoji_helper_spec.rb by using `iid` instead of `id`
Closes gitlab-org/gitlab-ee#2890
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/award_emoji_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/award_emoji_helper_spec.rb b/spec/helpers/award_emoji_helper_spec.rb index 7dfd6a3f6b4..035960ed96e 100644 --- a/spec/helpers/award_emoji_helper_spec.rb +++ b/spec/helpers/award_emoji_helper_spec.rb @@ -40,7 +40,7 @@ describe AwardEmojiHelper do it 'returns correct url' do @project = merge_request.project - expected_url = "/#{@project.namespace.path}/#{@project.path}/merge_requests/#{merge_request.id}/toggle_award_emoji" + expected_url = "/#{@project.namespace.path}/#{@project.path}/merge_requests/#{merge_request.iid}/toggle_award_emoji" expect(helper.toggle_award_url(merge_request)).to eq(expected_url) end @@ -52,7 +52,7 @@ describe AwardEmojiHelper do it 'returns correct url' do @project = issue.project - expected_url = "/#{@project.namespace.path}/#{@project.path}/issues/#{issue.id}/toggle_award_emoji" + expected_url = "/#{@project.namespace.path}/#{@project.path}/issues/#{issue.iid}/toggle_award_emoji" expect(helper.toggle_award_url(issue)).to eq(expected_url) end |