diff options
author | Rémy Coutable <remy@rymai.me> | 2018-06-11 12:59:25 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-06-11 12:59:25 +0300 |
commit | 7d3bbeeb31731907456e8c4d5640e52e58a921fb (patch) | |
tree | e6495c453cf449b8aa87845ec818798405323b9f /spec/factories | |
parent | a4f37e1834dbd755981b0ce19617e99b4ea43bb7 (diff) | |
parent | b38c75b3dc2dc655377a1b4070cb6f5242594dbe (diff) |
Merge branch 'rs-update-rspec' into 'master'
Update rspec to 3.7
See merge request gitlab-org/gitlab-ce!19449
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/lfs_objects.rb | 2 | ||||
-rw-r--r-- | spec/factories/notes.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/factories/lfs_objects.rb b/spec/factories/lfs_objects.rb index eaf3a4ed497..c909471bb55 100644 --- a/spec/factories/lfs_objects.rb +++ b/spec/factories/lfs_objects.rb @@ -7,7 +7,7 @@ FactoryBot.define do end trait :with_file do - file { fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "`/png") } + file { fixture_file_upload("spec/fixtures/dk.png", "`/png") } end # The uniqueness constraint means we can't use the correct OID for all LFS diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index 40f3fa7d69b..9fdc3e616a6 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -130,11 +130,11 @@ FactoryBot.define do end trait :with_attachment do - attachment { fixture_file_upload(Rails.root.join( "spec/fixtures/dk.png"), "image/png") } + attachment { fixture_file_upload("spec/fixtures/dk.png", "image/png") } end trait :with_svg_attachment do - attachment { fixture_file_upload(Rails.root.join("spec/fixtures/unsanitized.svg"), "image/svg+xml") } + attachment { fixture_file_upload("spec/fixtures/unsanitized.svg", "image/svg+xml") } end transient do |