Skip to content

Commit

Permalink
🧹 Fix Hyrax 5 remaining controller spec failures (#2064)
Browse files Browse the repository at this point in the history
* 🧹Remove ActiveFedora monkeypatch

* 🧹Fix file fixture
  • Loading branch information
laritakr authored Dec 16, 2023
1 parent 2cad6b2 commit cd3b059
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
12 changes: 0 additions & 12 deletions config/initializers/active_fedora_override.rb

This file was deleted.

4 changes: 3 additions & 1 deletion spec/controllers/hyrax/generic_works_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Hyrax::GenericWorksController do
let(:user) { FactoryBot.create(:user) }
let(:work) { FactoryBot.create(:work_with_one_file, user: user) }
let(:file_set) { work.ordered_members.to_a.first }

before do
Hydra::Works::AddFileToFileSet.call(file_set,
fixture_file('images/world.png'),
fixture_file_upload('images/world.png'),
:original_file)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/hyrax/images_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

before do
Hydra::Works::AddFileToFileSet.call(file_set,
fixture_file('images/world.png'),
fixture_file_upload('images/world.png'),
:original_file)
end

Expand Down

0 comments on commit cd3b059

Please sign in to comment.