fix specs

This commit is contained in:
Micaël Bergeron 2018-01-30 08:24:28 -05:00
parent 74ddc80590
commit 210072ba35
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Added uploader metadata to the uploads.
merge_request: 16779
author:
type: added

View file

@ -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 } } }