fix specs
This commit is contained in:
parent
74ddc80590
commit
210072ba35
2 changed files with 6 additions and 1 deletions
5
changelogs/unreleased/42547-upload-store-mount-point.yml
Normal file
5
changelogs/unreleased/42547-upload-store-mount-point.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Added uploader metadata to the uploads.
|
||||
merge_request: 16779
|
||||
author:
|
||||
type: added
|
|
@ -2,8 +2,8 @@ require 'spec_helper'
|
|||
|
||||
describe FileSizeValidator do
|
||||
let(:validator) { described_class.new(options) }
|
||||
let(:attachment) { AttachmentUploader.new }
|
||||
let(:note) { create(:note) }
|
||||
let(:attachment) { AttachmentUploader.new(note) }
|
||||
|
||||
describe 'options uses an integer' do
|
||||
let(:options) { { maximum: 10, attributes: { attachment: attachment } } }
|
||||
|
|
Loading…
Reference in a new issue