File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9797 end
9898
9999 context 'when disable_builtin_emails is true' do
100- it 'does not send the cancellation email' do
100+ it 'does not send the cancellation email on Solidus 4.5+' do
101+ if Gem ::Version . new ( Spree . solidus_version ) < Gem ::Version . new ( "4.5.0" )
102+ skip "disable_builtin_emails is not respected in Solidus < 4.5"
103+ end
104+
101105 allow ( SolidusTracking . configuration ) . to receive ( :disable_builtin_emails ) . and_return ( true )
102106 cancel_email_subscription = ::Spree ::Bus . subscription ( :spree_order_mailer_send_cancel_email )
103107 ::Spree ::Bus . unsubscribe ( cancel_email_subscription ) if cancel_email_subscription
111115 end
112116 end
113117
118+
114119 describe 'shipping an order' do
115120 it 'tracks the Fulfilled Order event' do
116121 order = create ( :order_ready_to_ship )
You can’t perform that action at this time.
0 commit comments