diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-31 09:43:47 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-31 09:43:47 +0200 |
commit | 57ea33bfd0b8d7591f6617ebb19e1b35498437ab (patch) | |
tree | ba16dba51c7959729a144749ba2e7d6595da6879 /spec/factories | |
parent | b9f57192853d100c90b1d46491838a98d5ae4bae (diff) | |
download | gitlab-ce-57ea33bfd0b8d7591f6617ebb19e1b35498437ab.tar.gz |
Extend specs for GFM uploads rewriter
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/file_uploader.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/factories/file_uploader.rb b/spec/factories/file_uploader.rb index 69a4e6d28fb..1b36e21f2b0 100644 --- a/spec/factories/file_uploader.rb +++ b/spec/factories/file_uploader.rb @@ -1,10 +1,11 @@ FactoryGirl.define do - factory :file_uploader, class: FileUploader do + factory :file_uploader do project secret nil transient do - path { File.join(Rails.root, 'spec/fixtures/rails_sample.jpg') } + fixture { 'rails_sample.jpg' } + path { File.join(Rails.root, 'spec/fixtures', fixture) } file { Rack::Test::UploadedFile.new(path) } end |