diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 11:49:38 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 11:49:38 +0300 |
commit | 8f227f23a70c0027ac272b48d5f6f1e03dac36e9 (patch) | |
tree | 004ceddf426f21ed7dbf7c0e36e8aca307d5d454 /spec/services | |
parent | 098a876f93e037d5a7800de74855acadf3ecbd84 (diff) |
Improve docs and specs related to pages artifacts
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/projects/update_pages_service_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/projects/update_pages_service_spec.rb b/spec/services/projects/update_pages_service_spec.rb index 6c583f18a9c..f75fdd9e03f 100644 --- a/spec/services/projects/update_pages_service_spec.rb +++ b/spec/services/projects/update_pages_service_spec.rb @@ -26,7 +26,7 @@ describe Projects::UpdatePagesService do build.update_attributes(artifacts_metadata: metadata) end - context 'artifacts' do + describe 'pages artifacts' do context 'with expiry date' do before do build.artifacts_expire_in = "2 days" @@ -34,6 +34,7 @@ describe Projects::UpdatePagesService do it "doesn't delete artifacts" do expect(execute).to eq(:success) + expect(build.reload.artifacts_file?).to eq(true) end end @@ -41,6 +42,7 @@ describe Projects::UpdatePagesService do context 'without expiry date' do it "does delete artifacts" do expect(execute).to eq(:success) + expect(build.reload.artifacts_file?).to eq(false) end end |