Commit e8781c00 authored by Arturo Herrero's avatar Arturo Herrero Committed by Tom Quirk

Move expectation to the right place

parent cc9011d5
...@@ -56,6 +56,7 @@ RSpec.describe Integrations::Jira::IssueEntity do ...@@ -56,6 +56,7 @@ RSpec.describe Integrations::Jira::IssueEntity do
{ name: 'assignee' } { name: 'assignee' }
], ],
web_url: 'http://jira.com/browse/GL-5', web_url: 'http://jira.com/browse/GL-5',
gitlab_web_url: Gitlab::Routing.url_helpers.project_integrations_jira_issue_path(project, 'GL-5'),
references: { relative: 'GL-5' }, references: { relative: 'GL-5' },
external_tracker: 'jira' external_tracker: 'jira'
) )
...@@ -76,7 +77,6 @@ RSpec.describe Integrations::Jira::IssueEntity do ...@@ -76,7 +77,6 @@ RSpec.describe Integrations::Jira::IssueEntity do
it 'returns URLs including context path' do it 'returns URLs including context path' do
expect(subject[:author]).to include(web_url: 'http://jira.com/jira-sub-path/secure/ViewProfile.jspa?name=reporter@reporter.com') expect(subject[:author]).to include(web_url: 'http://jira.com/jira-sub-path/secure/ViewProfile.jspa?name=reporter@reporter.com')
expect(subject[:web_url]).to eq('http://jira.com/jira-sub-path/browse/GL-5') expect(subject[:web_url]).to eq('http://jira.com/jira-sub-path/browse/GL-5')
expect(subject[:gitlab_web_url]).to eq(Gitlab::Routing.url_helpers.project_integrations_jira_issue_path(project, 'GL-5'))
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment