diff options
Diffstat (limited to 'spec/uploaders/attachment_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/attachment_uploader_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/uploaders/attachment_uploader_spec.rb b/spec/uploaders/attachment_uploader_spec.rb index a9415854d25..5b5c76c7cee 100644 --- a/spec/uploaders/attachment_uploader_spec.rb +++ b/spec/uploaders/attachment_uploader_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +require "spec_helper" describe AttachmentUploader do let(:note) { create(:note, :with_attachment) } @@ -7,26 +7,26 @@ describe AttachmentUploader do subject { uploader } - it_behaves_like 'builds correct paths', - store_dir: %r[uploads/-/system/note/attachment/], - upload_path: %r[uploads/-/system/note/attachment/], - absolute_path: %r[#{CarrierWave.root}/uploads/-/system/note/attachment/] + it_behaves_like "builds correct paths", + store_dir: %r{uploads/-/system/note/attachment/}, + upload_path: %r{uploads/-/system/note/attachment/}, + absolute_path: %r{#{CarrierWave.root}/uploads/-/system/note/attachment/} context "object_store is REMOTE" do before do stub_uploads_object_storage end - include_context 'with storage', described_class::Store::REMOTE + include_context "with storage", described_class::Store::REMOTE - it_behaves_like 'builds correct paths', - store_dir: %r[note/attachment/], - upload_path: %r[note/attachment/] + it_behaves_like "builds correct paths", + store_dir: %r{note/attachment/}, + upload_path: %r{note/attachment/} end describe "#migrate!" do before do - uploader.store!(fixture_file_upload(File.join('spec/fixtures/doc_sample.txt'))) + uploader.store!(fixture_file_upload(File.join("spec/fixtures/doc_sample.txt"))) stub_uploads_object_storage end |