Skip to content

Commit

Permalink
skip Actor Stack specs when disable_wings is flagged
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson authored and dunn committed Aug 24, 2023
1 parent 50db3c0 commit a9f5dc4
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/active_fedora_to_valkyrie_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe Hyrax::Actors::ActiveFedoraToValkyrie do
RSpec.describe Hyrax::Actors::ActiveFedoraToValkyrie, :active_fedora do
let(:ability) { :FAKE_ABILITY }
let(:attrs) { {} }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attrs) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/apply_order_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::ApplyOrderActor do
RSpec.describe Hyrax::Actors::ApplyOrderActor, :active_fedora do
let(:curation_concern) { create(:work_with_two_children, user: user) }
let(:ability) { ::Ability.new(user) }
let(:user) { create(:admin) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::ApplyPermissionTemplateActor do
RSpec.describe Hyrax::Actors::ApplyPermissionTemplateActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/attach_members_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::AttachMembersActor do
RSpec.describe Hyrax::Actors::AttachMembersActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/cleanup_file_sets_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CleanupFileSetsActor do
RSpec.describe Hyrax::Actors::CleanupFileSetsActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/cleanup_trophies_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CleanupTrophiesActor do
RSpec.describe Hyrax::Actors::CleanupTrophiesActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CollectionsMembershipActor, skip: (!(Hyrax.config.collection_class < ActiveFedora::Base) || Hyrax.config.use_valkyrie?) do
RSpec.describe Hyrax::Actors::CollectionsMembershipActor, :active_fedora, skip: (!(Hyrax.config.collection_class < ActiveFedora::Base) || Hyrax.config.use_valkyrie?) do
let(:user) { create(:user) }
let(:ability) { ::Ability.new(user) }
let(:curation_concern) { build(:work, user: user) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/create_with_files_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CreateWithFilesActor do
RSpec.describe Hyrax::Actors::CreateWithFilesActor, :active_fedora do
let(:user) { create(:user) }
let(:ability) { ::Ability.new(user) }
let(:work) { create(:generic_work, user: user) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CreateWithFilesOrderedMembersActor do
RSpec.describe Hyrax::Actors::CreateWithFilesOrderedMembersActor, :active_fedora do
let(:user) { create(:user) }
let(:ability) { ::Ability.new(user) }
let(:work) { create(:generic_work, user: user) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CreateWithRemoteFilesActor do
RSpec.describe Hyrax::Actors::CreateWithRemoteFilesActor, :active_fedora do
let(:terminator) { Hyrax::Actors::Terminator.new }
let(:actor) { stack.build(terminator) }
let(:stack) do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::CreateWithRemoteFilesOrderedMembersActor do
RSpec.describe Hyrax::Actors::CreateWithRemoteFilesOrderedMembersActor, :active_fedora do
let(:terminator) { Hyrax::Actors::Terminator.new }
let(:actor) { stack.build(terminator) }
let(:stack) do
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/default_admin_set_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::DefaultAdminSetActor do
RSpec.describe Hyrax::Actors::DefaultAdminSetActor, :active_fedora do
let(:depositor) { build(:user) }
let(:depositor_ability) { ::Ability.new(depositor) }
let(:work) { build(:generic_work) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/embargo_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::EmbargoActor do
RSpec.describe Hyrax::Actors::EmbargoActor, :active_fedora do
let(:actor) { described_class.new(work) }
let(:authenticated_vis) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED }
let(:public_vis) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/featured_work_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::FeaturedWorkActor do
RSpec.describe Hyrax::Actors::FeaturedWorkActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/file_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'wings/valkyrie/query_service'

RSpec.describe Hyrax::Actors::FileActor do
RSpec.describe Hyrax::Actors::FileActor, :active_fedora do
include ActionDispatch::TestProcess
include Hyrax::FactoryHelpers

Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/file_set_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'redlock'

RSpec.describe Hyrax::Actors::FileSetActor do
RSpec.describe Hyrax::Actors::FileSetActor, :active_fedora do
include ActionDispatch::TestProcess

let(:user) { create(:user) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::FileSetOrderedMembersActor do
RSpec.describe Hyrax::Actors::FileSetOrderedMembersActor, :active_fedora do
include ActionDispatch::TestProcess

let(:user) { create(:user) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/generic_work_actor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'redlock'
require 'hyrax/specs/spy_listener'

RSpec.describe Hyrax::Actors::GenericWorkActor do
RSpec.describe Hyrax::Actors::GenericWorkActor, :active_fedora do
include ActionDispatch::TestProcess
let(:env) { Hyrax::Actors::Environment.new(curation_concern, ability, attributes) }
let(:user) { create(:user) }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::InterpretVisibilityActor, unless: Hyrax.config.use_valkyrie? do
RSpec.describe Hyrax::Actors::InterpretVisibilityActor, :active_fedora do
let(:user) { create(:user) }
let(:ability) { ::Ability.new(user) }
let(:curation_concern) { GenericWork.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/lease_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::LeaseActor do
RSpec.describe Hyrax::Actors::LeaseActor, :active_fedora do
let(:actor) { described_class.new(work) }
let(:authenticated_vis) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED }
let(:public_vis) { Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/model_actor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CoverActor < ::Hyrax::Actors::AbstractActor
end
end

RSpec.describe Hyrax::Actors::ModelActor do
RSpec.describe Hyrax::Actors::ModelActor, :active_fedora do
let(:work) { MusicalWork::Cover.new }
let(:depositor) { create(:user) }
let(:depositor_ability) { ::Ability.new(depositor) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/null_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe Hyrax::Actors::NullActor do
RSpec.describe Hyrax::Actors::NullActor, :active_fedora do
subject(:actor) { described_class.new(spy_actor) }

let(:attributes) { {} }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/optimistic_lock_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::OptimisticLockValidator do
RSpec.describe Hyrax::Actors::OptimisticLockValidator, :active_fedora do
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:ability) { ::Ability.new(depositor) }

Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/ordered_members_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'redlock'

RSpec.describe Hyrax::Actors::OrderedMembersActor do
RSpec.describe Hyrax::Actors::OrderedMembersActor, :active_fedora do
include ActionDispatch::TestProcess

let(:user) { create(:user) }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/transactional_request_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
RSpec.describe Hyrax::Actors::TransactionalRequest do
RSpec.describe Hyrax::Actors::TransactionalRequest, :active_fedora do
let(:bad_actor) do
Class.new(Hyrax::Actors::AbstractActor) do
def create(attributes)
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/transfer_request_actor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'rails_helper'

RSpec.describe Hyrax::Actors::TransferRequestActor do
RSpec.describe Hyrax::Actors::TransferRequestActor, :active_fedora do
let(:ability) { ::Ability.new(depositor) }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attributes) }
let(:terminator) { Hyrax::Actors::Terminator.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/actors/hyrax/actors/valkyrie_to_active_fedora_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

RSpec.describe Hyrax::Actors::ValkyrieToActiveFedora do
RSpec.describe Hyrax::Actors::ValkyrieToActiveFedora, :active_fedora do
let(:ability) { :FAKE_ABILITY }
let(:attrs) { {} }
let(:env) { Hyrax::Actors::Environment.new(work, ability, attrs) }
Expand Down
2 changes: 1 addition & 1 deletion spec/features/actor_stack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'rails_helper'

# Integration tests for the full midddleware stack
RSpec.describe Hyrax::DefaultMiddlewareStack, :clean_repo do
RSpec.describe Hyrax::DefaultMiddlewareStack, :active_fedora, :clean_repo do
subject(:actor) { stack.build(Hyrax::Actors::Terminator.new) }
let(:ability) { ::Ability.new(user) }
let(:attributes) { {} }
Expand Down

0 comments on commit a9f5dc4

Please sign in to comment.