Sha256: b82f5676ca98b1aefb642019b0563ab6a42d3ecd48dbe7486c74f2b48af041e7
Contents?: true
Size: 601 Bytes
Versions: 39
Compression:
Stored size: 601 Bytes
Contents
require 'spec_helper' module Ddr module Models RSpec.describe FileManagement, :type => :model do let(:object) { Component.new } let(:file) { fixture_file_upload("imageA.tif", "image/tiff") } describe "#add_file" do it "should run a virus scan on the file" do expect(object).to receive(:virus_scan) object.add_file file, path: "m_content" end it "should set the mimeType" do object.add_file file, path: "m_content" expect(object.m_content.mime_type).to eq('image/tiff') end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems