Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve variant spec coverage #4642

Merged

Conversation

mamhoff
Copy link
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
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

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
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!

@mamhoff mamhoff force-pushed the improve-variant-spec-coverage branch from 14c0b15 to b35432e Compare September 26, 2022 15:43
Copy link
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 🙂

core/app/models/spree/variant.rb Outdated Show resolved Hide resolved
@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