spec/models/hyrax/uploaded_file_spec.rb in hyrax-1.1.1 vs spec/models/hyrax/uploaded_file_spec.rb in hyrax-2.0.0.beta1

- old
+ new

@@ -1,6 +1,7 @@ -describe Hyrax::UploadedFile do +RSpec.describe Hyrax::UploadedFile do let(:file1) { File.open(fixture_path + '/world.png') } + subject { described_class.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