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.

Remove flaky test.

Matthew Kennedy3ba091914ab6
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 63461f9af2..f7b60931e8 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -20,7 +20,7 @@ RSpec.configure do |config|
'v2/platform/index.yaml' => {
openapi: '3.0.3',
info: {
- title: 'Platform API V2',
+ title: 'Platform API v2',
contact: {
name: 'Spark Solutions',
url: 'https://sparksolutions.co',
diff --git a/core/spec/models/spree/digital_link_spec.rb b/core/spec/models/spree/digital_link_spec.rb
index 03fc415f3e..39b3b0218d 100644
--- a/core/spec/models/spree/digital_link_spec.rb
+++ b/core/spec/models/spree/digital_link_spec.rb
@@ -33,12 +33,10 @@ describe Spree::DigitalLink, type: :model do
end
describe '#reset!' do
- let!(:digital_link_count_check) { create(:digital_link, access_counter: 5) }
- let!(:digital_link_created_at_check) { create(:digital_link) }
+ let!(:digital_link) { create(:digital_link, access_counter: 5) }
- it 'resets created at and access_counter' do
- expect { digital_link_created_at_check.reset! }.to change(digital_link_created_at_check, :created_at)
- expect { digital_link_count_check.reset! }.to change(digital_link_count_check, :access_counter)
+ it 'resets access_counter' do
+ expect { digital_link.reset! }.to change(digital_link, :access_counter)
end
end