Skip to content

Improve variant spec coverage#4642

Merged
waiting-for-dev merged 7 commits intosolidusio:masterfrom
mamhoff:improve-variant-spec-coverage
Sep 27, 2022
Merged

Improve variant spec coverage#4642
waiting-for-dev merged 7 commits intosolidusio:masterfrom
mamhoff:improve-variant-spec-coverage

Conversation

@mamhoff
Copy link
Copy Markdown
Contributor

@mamhoff mamhoff commented Sep 26, 2022

Summary

This adds some specs for a few instance methods on Spree::Variant. No functional changes.

Checklist

The following are mandatory for all PRs:

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages.

The following are not always needed (cross them out if they are not):

  • I have added automated tests to cover my changes.
  • I have attached screenshots to demo visual changes.
  • I have opened a PR to update the guides.
  • I have updated the readme to account for my changes.

@github-actions github-actions Bot added the changelog:solidus_core Changes to the solidus_core gem label Sep 26, 2022
Copy link
Copy Markdown
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 26, 2022

Codecov Report

Merging #4642 (fda2b92) into master (bc64c65) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4642      +/-   ##
==========================================
+ Coverage   85.58%   85.63%   +0.04%     
==========================================
  Files         570      570              
  Lines       14678    14678              
==========================================
+ Hits        12562    12569       +7     
+ Misses       2116     2109       -7     
Impacted Files Coverage Δ
core/app/models/spree/variant.rb 100.00% <100.00%> (+4.34%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tvdeyen tvdeyen requested a review from a team September 26, 2022 14:14
Copy link
Copy Markdown
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke Martin!

Comment thread core/spec/models/spree/variant_spec.rb Outdated
@mamhoff mamhoff force-pushed the improve-variant-spec-coverage branch from 14c0b15 to b35432e Compare September 26, 2022 15:43
Copy link
Copy Markdown
Contributor

@waiting-for-dev waiting-for-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion to go the extra mile 🙂

Comment thread core/app/models/spree/variant.rb Outdated
@waiting-for-dev waiting-for-dev merged commit 8b5406d into solidusio:master Sep 27, 2022
@waiting-for-dev waiting-for-dev added the type:enhancement Proposed or newly added feature label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_core Changes to the solidus_core gem type:enhancement Proposed or newly added feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants