Add feartue spec. Fix failed test

This commit is contained in:
Shinya Maeda 2018-03-14 00:52:34 +09:00
parent aa91fdff71
commit b4e8e7ed3a
2 changed files with 13 additions and 1 deletions

View File

@ -349,6 +349,18 @@ describe 'Pipelines', :js do
it { expect(page).not_to have_selector('.build-artifacts') }
end
context 'with trace artifact' do
before do
create(:ci_build, :success, :trace_artifact, pipeline: pipeline)
visit_project_pipelines
end
it 'does not show trace artifact as artifacts'
expect(page).not_to have_selector('.build-artifacts')
end
end
end
context 'mini pipeline graph' do

View File

@ -66,7 +66,7 @@ describe MigrateOldArtifacts do
end
it 'all files do have artifacts' do
Ci::Build.with_artifacts do |build|
Ci::Build.with_artifacts(:archive) do |build|
expect(build).to have_artifacts
end
end