Skip to content

Commit

Permalink
don't test AF path in InheritPermissionsJob when disable_wings
Browse files Browse the repository at this point in the history
this job supports both Valkyrie and AF model and has tests for both. if we've
removed AF from the environment, only test the Valkyrie path.
  • Loading branch information
tamsin johnson authored and dunn committed Aug 24, 2023
1 parent 0b6b4ea commit b2cd97e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/jobs/inherit_permissions_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# frozen_string_literal: true
RSpec.describe InheritPermissionsJob do
let(:user) { FactoryBot.create(:user) }
let(:work) { FactoryBot.create(:work_with_one_file, user: user) }

context "when using a legacy AF resource" do
context "when using a legacy AF resource", :active_fedora do
let(:work) { FactoryBot.create(:work_with_one_file, user: user) }

before do
work.permissions.build(name: name, type: type, access: access)
work.save
Expand Down

0 comments on commit b2cd97e

Please sign in to comment.