diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-08-18 16:31:44 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-12-15 12:26:36 +0100 |
commit | 6731ab5d76c34462f0b4424ff03c9646ad916b76 (patch) | |
tree | 0fc3f62485f5dfdf36d02e6407bba7640ea87aef /spec/uploaders/attachment_uploader_spec.rb | |
parent | 01ffcceb81f1a556cdce15ec89c15be12dba9732 (diff) | |
download | gitlab-ce-6731ab5d76c34462f0b4424ff03c9646ad916b76.tar.gz |
Add Gitlab::Middleware::Multipart
Diffstat (limited to 'spec/uploaders/attachment_uploader_spec.rb')
-rw-r--r-- | spec/uploaders/attachment_uploader_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/uploaders/attachment_uploader_spec.rb b/spec/uploaders/attachment_uploader_spec.rb new file mode 100644 index 00000000000..6098be5cd45 --- /dev/null +++ b/spec/uploaders/attachment_uploader_spec.rb @@ -0,0 +1,18 @@ +require 'spec_helper' + +describe AttachmentUploader do + let(:issue) { build(:issue) } + subject { described_class.new(issue) } + + describe '#move_to_cache' do + it 'is true' do + expect(subject.move_to_cache).to eq(true) + end + end + + describe '#move_to_store' do + it 'is true' do + expect(subject.move_to_store).to eq(true) + end + end +end |