Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-01 23:27:54 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-05-01 23:27:54 +0300
commit9bb7abedf57f5325a92bebc2d93b85cf7e1fc303 (patch)
tree84fe11877609631929b2911ff44bb0d500c8bc2a /spec/services
parent9267ef0bd1d2d9ee4b7fe596762fec3e978a02f3 (diff)
Fix file_store for artifacts and lfs when saving
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/projects/update_pages_service_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/services/projects/update_pages_service_spec.rb b/spec/services/projects/update_pages_service_spec.rb
index a418808fd26..347ac13828c 100644
--- a/spec/services/projects/update_pages_service_spec.rb
+++ b/spec/services/projects/update_pages_service_spec.rb
@@ -123,11 +123,13 @@ describe Projects::UpdatePagesService do
expect(execute).not_to eq(:success)
end
- it 'fails for empty file fails' do
- build.job_artifacts_archive.update_attributes(file: empty_file)
+ context 'when using empty file' do
+ let(:file) { empty_file }
- expect { execute }
- .to raise_error(Projects::UpdatePagesService::FailedToExtractError)
+ it 'fails to extract' do
+ expect { execute }
+ .to raise_error(Projects::UpdatePagesService::FailedToExtractError)
+ end
end
context 'when timeout happens by DNS error' do