debian-mirror-gitlab/spec/helpers/projects/security/configuration_helper_spec.rb
2022-06-21 17:19:12 +05:30

19 lines
585 B
Ruby

# 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 }
it { is_expected.to eq("https://#{ApplicationHelper.promo_host}/pricing/") }
end
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
end