Skip to content

Commit

Permalink
Merge pull request #5183 from solidusio/elia/fix-new-rubocop-error
Browse files Browse the repository at this point in the history
Fix rubocop violation enabled by a rubocop bugfix
  • Loading branch information
elia authored Jun 26, 2023
2 parents d7b8cf9 + 67570f0 commit 9a273b8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/spec/lib/spree/core/stock_configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
stock_configuration.coordinator_class = MyCoordinator.to_s

expect(subject).to be MyCoordinator

ensure
Object.send(:remove_const, :MyCoordinator)
end
Expand All @@ -35,7 +34,6 @@
stock_configuration.estimator_class = MyEstimator.to_s

expect(subject).to be MyEstimator

ensure
Object.send(:remove_const, :MyEstimator)
end
Expand All @@ -53,7 +51,6 @@
stock_configuration.location_filter_class = MyFilter.to_s

expect(subject).to be MyFilter

ensure
Object.send(:remove_const, :MyFilter)
end
Expand All @@ -71,7 +68,6 @@
stock_configuration.location_sorter_class = MySorter.to_s

expect(subject).to be MySorter

ensure
Object.send(:remove_const, :MySorter)
end
Expand All @@ -89,7 +85,6 @@
stock_configuration.allocator_class = MyAllocator.to_s

expect(subject).to be MyAllocator

ensure
Object.send(:remove_const, :MyAllocator)
end
Expand All @@ -107,7 +102,6 @@
stock_configuration.inventory_unit_builder_class = MyInventoryUnitBuilder.to_s

expect(subject).to be MyInventoryUnitBuilder

ensure
Object.send(:remove_const, :MyInventoryUnitBuilder)
end
Expand All @@ -127,7 +121,6 @@
stock_configuration.availability_validator_class = MyAvailabilityValidator.to_s

expect(subject).to be MyAvailabilityValidator

ensure
Object.send(:remove_const, :MyAvailabilityValidator)
end
Expand All @@ -147,7 +140,6 @@
stock_configuration.inventory_validator_class = MyInventoryValidator.to_s

expect(subject).to be MyInventoryValidator

ensure
Object.send(:remove_const, :MyInventoryValidator)
end
Expand Down

0 comments on commit 9a273b8

Please sign in to comment.