Skip to content

Commit

Permalink
Merge pull request #6255 from samvera/wk-form-serv
Browse files Browse the repository at this point in the history
disable WorkFormService specs in .koppie
  • Loading branch information
dlpierce authored Sep 19, 2023
2 parents e4890a8 + a62e4e5 commit 0bac12a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/controllers/hyrax/batch_uploads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ class BatchUploadsController < ApplicationController
include Hyrax::WorksControllerBehavior

# Gives the class of the form.
class BatchUploadFormService < Hyrax::WorkFormService
class BatchUploadFormService
def self.build(resource, current_ability, *extra)
form_class.new(resource, current_ability, *extra)
end

def self.form_class(_ = nil)
::Hyrax::Forms::BatchUploadForm
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/hyrax/work_form_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe Hyrax::WorkFormService do
RSpec.describe Hyrax::WorkFormService, :active_fedora do
subject(:form_service) { described_class }
let(:work) { GenericWork.new }

Expand Down

0 comments on commit 0bac12a

Please sign in to comment.