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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
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.rbindex 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 doendit 'calls second method' do- skip_if_ruby_3expect(service).to receive(:second_method).and_call_originalservice.call(params: {})endit 'passes input from call to first run method' do- skip_if_ruby_3param = 'param'expect(service).to receive(:first_method).with(params: param).and_call_originalservice.call(params: param)endit 'passes empty hash if input was not provided' do- skip_if_ruby_3expect(service).to receive(:first_method).with(params: {}).and_call_originalservice.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')- endendcontext 'not compatible params passed as result' do