diff options
author | Micaël Bergeron <mbergeron@gitlab.com> | 2018-01-30 08:24:28 -0500 |
---|---|---|
committer | Micaël Bergeron <mbergeron@gitlab.com> | 2018-02-02 09:28:15 -0500 |
commit | 210072ba3543332f662c96ffab7346a335290af4 (patch) | |
tree | 97d72c088e3eca755c72c71d58d31745de20d407 | |
parent | 74ddc80590053b04b90c35ae3e1f46bfbd9d0d15 (diff) | |
download | gitlab-ce-210072ba3543332f662c96ffab7346a335290af4.tar.gz |
fix specs
-rw-r--r-- | changelogs/unreleased/42547-upload-store-mount-point.yml | 5 | ||||
-rw-r--r-- | spec/lib/file_size_validator_spec.rb | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/42547-upload-store-mount-point.yml b/changelogs/unreleased/42547-upload-store-mount-point.yml new file mode 100644 index 00000000000..35ae022984e --- /dev/null +++ b/changelogs/unreleased/42547-upload-store-mount-point.yml @@ -0,0 +1,5 @@ +--- +title: Added uploader metadata to the uploads. +merge_request: 16779 +author: +type: added diff --git a/spec/lib/file_size_validator_spec.rb b/spec/lib/file_size_validator_spec.rb index c44bc1840df..ebd907ecb7f 100644 --- a/spec/lib/file_size_validator_spec.rb +++ b/spec/lib/file_size_validator_spec.rb @@ -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 } } } |