@@ -109,5 +109,13 @@ RSpec.describe Jira::JqlBuilderService do
expect(subject).toeq('project = PROJECT_KEY order by created DESC')
end
end
context'with vulnerability_ids params'do
let(:params){{vulnerability_ids: [1,25]}}
it'builds jql'do
expect(subject).toeq('project = PROJECT_KEY AND (description ~ "/-/security/vulnerabilities/1" OR description ~ "/-/security/vulnerabilities/25") order by created DESC')