Skip to content

Commit

Permalink
skip MembersPermissionJobBehavior AF tests when disable_wings
Browse files Browse the repository at this point in the history
these jobs inherit `MembersPermissionJobBehavior`, which 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 tamsin johnson committed Aug 25, 2023
1 parent 94b1dd2 commit d4fcb10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/jobs/hyrax/grant_edit_to_members_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
RSpec.describe Hyrax::GrantEditToMembersJob do
let(:depositor) { create(:user) }

context "when using active fedora" do
context "when using active fedora", :active_fedora do
let(:work) { create(:work) }
let(:file_set_ids) { ['xyz123abc', 'abc789zyx'] }

Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/hyrax/grant_read_to_members_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
RSpec.describe Hyrax::GrantReadToMembersJob, perform_enqueued: [Hyrax::GrantReadToMembersJob] do
let(:depositor) { FactoryBot.create(:user) }

context "when using active fedora" do
context "when using active fedora", :active_fedora do
let(:work) { FactoryBot.create(:work_with_files) }

it 'loops over FileSet IDs, spawning a job for each' do
Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/hyrax/revoke_edit_from_members_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::RevokeEditFromMembersJob do
RSpec.describe Hyrax::RevokeEditFromMembersJob, :active_fedora do
let(:depositor) { create(:user) }

context "when using active fedora" do
Expand Down

0 comments on commit d4fcb10

Please sign in to comment.