summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-06-01 09:52:19 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-06-01 16:34:48 +0200
commit6185d12c183b539ea06ab3550b2c21045d169ca4 (patch)
tree9a5a8e50f8b0c6c64d69099d0374dc15ace808ee /spec/migrations
parente61f38d79eb85a7c601bd146d5b8e48a8b4418e5 (diff)
downloadgitlab-ce-6185d12c183b539ea06ab3550b2c21045d169ca4.tar.gz
Add missing specs
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/migrate_old_artifacts_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/migrations/migrate_old_artifacts_spec.rb b/spec/migrations/migrate_old_artifacts_spec.rb
index 9d951038dcc..50f4bbda001 100644
--- a/spec/migrations/migrate_old_artifacts_spec.rb
+++ b/spec/migrations/migrate_old_artifacts_spec.rb
@@ -93,17 +93,17 @@ describe MigrateOldArtifacts do
FileUtils.mkdir_p(legacy_path(build))
FileUtils.copy(
- Rails.root.join('spec/fixtures/ci_build_artifacts.zip'),
- File.join(legacy_path(build), "ci_build_artifacts.zip")
- )
+ Rails.root.join('spec/fixtures/ci_build_artifacts.zip'),
+ File.join(legacy_path(build), "ci_build_artifacts.zip"))
+
FileUtils.copy(
- Rails.root.join('spec/fixtures/ci_build_artifacts_metadata.gz'),
- File.join(legacy_path(build), "ci_build_artifacts_metadata.gz")
- )
+ Rails.root.join('spec/fixtures/ci_build_artifacts_metadata.gz'),
+ File.join(legacy_path(build), "ci_build_artifacts_metadata.gz"))
+
build.update_columns(
artifacts_file: 'ci_build_artifacts.zip',
- artifacts_metadata: 'ci_build_artifacts_metadata.gz',
- )
+ artifacts_metadata: 'ci_build_artifacts_metadata.gz')
+
build.reload
end