From 8e0558eac46834dbc6946fc2d1a1cb860e297c4b Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 2 Aug 2018 17:15:25 +0900 Subject: Fix fixtures and factory --- spec/factories/ci/job_artifacts.rb | 4 ++-- spec/fixtures/junit.xml.gz | Bin 568 -> 0 bytes spec/fixtures/junit/junit_ant.xml.gz | Bin 0 -> 1659 bytes 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 spec/fixtures/junit.xml.gz create mode 100644 spec/fixtures/junit/junit_ant.xml.gz diff --git a/spec/factories/ci/job_artifacts.rb b/spec/factories/ci/job_artifacts.rb index bc73a31d189..46aaaf6aa5d 100644 --- a/spec/factories/ci/job_artifacts.rb +++ b/spec/factories/ci/job_artifacts.rb @@ -50,7 +50,7 @@ FactoryBot.define do after(:build) do |artifact, evaluator| artifact.file = fixture_file_upload( - Rails.root.join('spec/fixtures/junit.xml.gz'), 'application/x-gzip') + Rails.root.join('spec/fixtures/junit/junit.xml.gz'), 'application/x-gzip') end end @@ -60,7 +60,7 @@ FactoryBot.define do after(:build) do |artifact, evaluator| artifact.file = fixture_file_upload( - Rails.root.join('spec/fixtures/junit/junit_master_ant.xml.gz'), 'application/x-gzip') + Rails.root.join('spec/fixtures/junit/junit_ant.xml.gz'), 'application/x-gzip') end end diff --git a/spec/fixtures/junit.xml.gz b/spec/fixtures/junit.xml.gz deleted file mode 100644 index 88b7de6fa61..00000000000 Binary files a/spec/fixtures/junit.xml.gz and /dev/null differ diff --git a/spec/fixtures/junit/junit_ant.xml.gz b/spec/fixtures/junit/junit_ant.xml.gz new file mode 100644 index 00000000000..e9cca1b0c73 Binary files /dev/null and b/spec/fixtures/junit/junit_ant.xml.gz differ -- cgit v1.2.1