2021-04-17 20:07:23 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Projects::Security::ConfigurationHelper do
|
|
|
|
let(:current_user) { create(:user) }
|
|
|
|
|
|
|
|
describe 'security_upgrade_path' do
|
|
|
|
subject { security_upgrade_path }
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
it { is_expected.to eq("https://#{ApplicationHelper.promo_host}/pricing/") }
|
2021-04-17 20:07:23 +05:30
|
|
|
end
|
2022-06-21 17:19:12 +05:30
|
|
|
|
|
|
|
describe 'vulnerability_training_docs_path' do
|
|
|
|
subject { helper.vulnerability_training_docs_path }
|
|
|
|
|
|
|
|
it { is_expected.to eq(help_page_path('user/application_security/vulnerabilities/index', anchor: 'enable-security-training-for-vulnerabilities')) }
|
|
|
|
end
|
2021-04-17 20:07:23 +05:30
|
|
|
end
|