Commit 482f43c3 authored by Justin Ho's avatar Justin Ho

Update helper specs to include values

Make them more reliable by checking for the actual values
parent 1c834292
......@@ -33,10 +33,18 @@ RSpec.describe EE::ServicesHelper do
end
context 'Jira service' do
let(:integration) { build(:jira_service) }
let(:integration) { build(:jira_service, issues_enabled: true, project_key: 'FE') }
it 'includes Jira specific fields' do
is_expected.to include(:show_jira_issues_integration, :enable_jira_issues, :project_key, :gitlab_issues_enabled, :edit_project_path)
stub_licensed_features(jira_issues_integration: true)
is_expected.to include(
show_jira_issues_integration: 'true',
enable_jira_issues: 'true',
project_key: 'FE',
gitlab_issues_enabled: 'true',
edit_project_path: edit_project_path(project, anchor: 'js-shared-permissions')
)
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