Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update service_module_spec.rb

Ricardo Trindaded207de888127
diff --git a/core/spec/lib/spree/service_module_spec.rb b/core/spec/lib/spree/service_module_spec.rb
index 3168b62737..3ac0650235 100644
--- a/core/spec/lib/spree/service_module_spec.rb
+++ b/core/spec/lib/spree/service_module_spec.rb
@@ -174,28 +174,20 @@ describe Spree::ServiceModule do
end
it 'calls second method' do
- skip_if_ruby_3
expect(service).to receive(:second_method).and_call_original
service.call(params: {})
end
it 'passes input from call to first run method' do
- skip_if_ruby_3
param = 'param'
expect(service).to receive(:first_method).with(params: param).and_call_original
service.call(params: param)
end
it 'passes empty hash if input was not provided' do
- skip_if_ruby_3
expect(service).to receive(:first_method).with(params: {}).and_call_original
service.call(params: {})
end
-
- # FIXME: https://github.com/rspec/rspec-mocks/issues/1306
- def skip_if_ruby_3
- skip 'https://github.com/rspec/rspec-mocks/issues/1306' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0')
- end
end
context 'not compatible params passed as result' do