Commit ef6b8a8c authored by Kamil Trzciński's avatar Kamil Trzciński

Fix some test failures

parent 03beecac
......@@ -27,7 +27,7 @@
- if pipeline.expose_license_management_data?
#js-tab-licenses.tab-pane
#js-licenses-app{ data: { license_management_artifact_url(pipeline),
#js-licenses-app{ data: { license_head_path: license_management_artifact_url(pipeline),
api_url: license_management_api_url(project),
license_management_settings_path: license_management_settings_path,
can_manage_licenses: can?(current_user, :admin_software_license_policy, project).to_s } }
......@@ -84,7 +84,7 @@ describe Projects::PipelinesController do
context 'with a license management artifact' do
before do
build = create(:ci_build, pipeline: pipeline)
create(:ee_ci_job_artifact, :license_management, build: build)
create(:ee_ci_job_artifact, :license_management, job: build)
end
context 'with feature enabled' do
......
......@@ -39,5 +39,7 @@ FactoryBot.define do
after(:build) do |artifact, _|
artifact.file = fixture_file_upload(
Rails.root.join('spec/fixtures/trace/sample_trace'), 'text/plain')
end
end
end
end
......@@ -77,7 +77,7 @@ describe MergeRequestWidgetEntity do
describe '#license_management' do
before do
build = create(:ci_build, pipeline: pipeline)
create(:ee_ci_job_artifact, :license_management, build: build)
create(:ee_ci_job_artifact, :license_management, job: build)
end
it 'should not be included, if license management features are off' do
......
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