spec/controllers/downloads_controller_spec.rb in curate-0.5.6 vs spec/controllers/downloads_controller_spec.rb in curate-0.6.0
- old
+ new
@@ -5,10 +5,10 @@
let(:user) { FactoryGirl.create(:user) }
let(:another_user) { FactoryGirl.create(:user) }
let(:visibility) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE }
let(:image_file) { File.open(Rails.root.join('../fixtures/files/image.png')) }
let(:generic_file) {
- FactoryGirl.create_generic_file(:generic_work, user) {|g|
+ FactoryGirl.create_generic_file(:generic_work, user, curate_fixture_file_upload('files/image.png', 'image/png', false)) {|g|
g.visibility = visibility
}
}
it "raise not_found if the object does not exist" do