Commit 1c834292 authored by Justin Ho's avatar Justin Ho

Fix backend specs

parent 3559083d
...@@ -18,7 +18,7 @@ module EE ...@@ -18,7 +18,7 @@ module EE
show_jira_issues_integration: @project&.feature_available?(:jira_issues_integration).to_s, show_jira_issues_integration: @project&.feature_available?(:jira_issues_integration).to_s,
enable_jira_issues: integration.issues_enabled.to_s, enable_jira_issues: integration.issues_enabled.to_s,
project_key: integration.project_key, project_key: integration.project_key,
gitlab_issues_enabled: @project.issues_enabled?.to_s, gitlab_issues_enabled: @project&.issues_enabled?.to_s,
upgrade_plan_path: @project && ::Gitlab::CurrentSettings.should_check_namespace_plan? ? upgrade_plan_path(@project.group) : nil, upgrade_plan_path: @project && ::Gitlab::CurrentSettings.should_check_namespace_plan? ? upgrade_plan_path(@project.group) : nil,
edit_project_path: @project ? edit_project_path(@project, anchor: 'js-shared-permissions') : nil edit_project_path: @project ? edit_project_path(@project, anchor: 'js-shared-permissions') : nil
) )
......
...@@ -20,6 +20,10 @@ RSpec.describe EE::ServicesHelper do ...@@ -20,6 +20,10 @@ RSpec.describe EE::ServicesHelper do
describe '#integration_form_data' do describe '#integration_form_data' do
subject { helper.integration_form_data(integration) } subject { helper.integration_form_data(integration) }
before do
assign(:project, project)
end
context 'Slack service' do context 'Slack service' do
let(:integration) { build(:slack_service) } let(:integration) { build(:slack_service) }
......
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