spec/views/hyrax/uploads/create.json.jbuilder_spec.rb in hyrax-1.1.1 vs spec/views/hyrax/uploads/create.json.jbuilder_spec.rb in hyrax-2.0.0.beta1
- old
+ new
@@ -1,7 +1,5 @@
-require 'spec_helper'
-
-describe 'hyrax/uploads/create.json.jbuilder' do
+RSpec.describe 'hyrax/uploads/create.json.jbuilder' do
let(:file) { double(filename: 'foo.jpg', size: 777) }
let(:uploader) { instance_double(Hyrax::UploadedFileUploader, file: file) }
let(:upload) { mock_model(Hyrax::UploadedFile, file: uploader) }
before do