Sha256: 7072b2c857e6584fbe85ff941c078827cf9458081f565ef92e9df650625a4cad
Contents?: true
Size: 287 Bytes
Versions: 3
Compression:
Stored size: 287 Bytes
Contents
describe Sufia::UploadedFile do let(:file1) { File.open(fixture_path + '/world.png') } subject { Sufia::UploadedFile.create(file: file1) } it "is not in the public directory" do temp_dir = Rails.root + 'tmp' expect(subject.file.path).to start_with temp_dir.to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta3 | spec/models/sufia/uploaded_file_spec.rb |
sufia-7.0.0.beta2 | spec/models/sufia/uploaded_file_spec.rb |
sufia-7.0.0.beta1 | spec/models/sufia/uploaded_file_spec.rb |