diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-28 08:09:40 +0300 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-07-29 15:08:41 +0300 |
commit | d05af7b7c6975ae66808ed6676a1b947c7abe244 (patch) | |
tree | b158cf69a40b7806691f877292eb5c94b6f2cae9 /spec/features | |
parent | 41057b856eaf309ba6a80c03fa284dd07e2c73a3 (diff) |
Check for Ci::Build artifacts at database level
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/pipelines_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/pipelines_spec.rb b/spec/features/pipelines_spec.rb index 7f861db1969..377a9aba60d 100644 --- a/spec/features/pipelines_spec.rb +++ b/spec/features/pipelines_spec.rb @@ -116,9 +116,19 @@ describe "Pipelines" do it { expect(page).to have_link(with_artifacts.name) } end + context 'with artifacts expired' do + let!(:with_artifacts_expired) { create(:ci_build, :artifacts_expired, :success, pipeline: pipeline, name: 'rspec', stage: 'test') } + + before { visit namespace_project_pipelines_path(project.namespace, project) } + + it { expect(page).not_to have_selector('.build-artifacts') } + end + context 'without artifacts' do let!(:without_artifacts) { create(:ci_build, :success, pipeline: pipeline, name: 'rspec', stage: 'test') } + before { visit namespace_project_pipelines_path(project.namespace, project) } + it { expect(page).not_to have_selector('.build-artifacts') } end end |