diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 00:08:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 00:08:01 +0300 |
commit | 4ba55564e1dd7fdbdb89065be8eefd01d8c2d607 (patch) | |
tree | 32e6eaec4cf44b40607e3fd8c4077050c3ce9771 /spec/helpers/issuables_helper_spec.rb | |
parent | 115c8ea7af7ef69ca3f09c333314546e9b5712f9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers/issuables_helper_spec.rb')
-rw-r--r-- | spec/helpers/issuables_helper_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb index 1af8b7390bb..57ea5416989 100644 --- a/spec/helpers/issuables_helper_spec.rb +++ b/spec/helpers/issuables_helper_spec.rb @@ -202,6 +202,26 @@ describe IssuablesHelper do expect(helper.issuable_initial_data(issue)).to match(hash_including(expected_data)) end + describe '#sentryIssueIdentifier' do + let(:issue) { create(:issue, author: user) } + + before do + assign(:project, issue.project) + end + + it 'sets sentryIssueIdentifier to nil with no sentry issue ' do + expect(helper.issuable_initial_data(issue)[:sentryIssueIdentifier]) + .to be_nil + end + + it 'sets sentryIssueIdentifier to sentry_issue_identifier' do + sentry_issue = create(:sentry_issue, issue: issue) + + expect(helper.issuable_initial_data(issue)[:sentryIssueIdentifier]) + .to eq(sentry_issue.sentry_issue_identifier) + end + end + describe '#zoomMeetingUrl in issue' do let(:issue) { create(:issue, author: user) } |