Skip to content

Commit

Permalink
Only test old subscribers compatibility when legacy system is present
Browse files Browse the repository at this point in the history
The legacy event system is not available since v4.0 [1], so constants
won't be available for testing.

[1] - solidusio/solidus#5024
  • Loading branch information
waiting-for-dev committed May 2, 2023
1 parent 08e840b commit 92fc40f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'omnes'

RSpec.describe SolidusSupport::LegacyEventCompat::Subscriber do
RSpec.describe SolidusSupport::LegacyEventCompat::Subscriber, if: Spree.solidus_version < Gem::Version.new("4.0.0.dev") do
subject { Module.new.include(Spree::Event::Subscriber).include(described_class) }

describe '#omnes_subscriber' do
Expand Down

0 comments on commit 92fc40f

Please sign in to comment.