Skip to content

Instantly share code, notes, and snippets.

@thefotios
Last active July 27, 2023 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefotios/c82d53ce0b2e5ad2986e39642b92ad5d to your computer and use it in GitHub Desktop.
Save thefotios/c82d53ce0b2e5ad2986e39642b92ad5d to your computer and use it in GitHub Desktop.
it 'creates the credits to the user' do
expect(
order.user.store_credits.where(category: MultiMonthCommit.store_credit_category).map(&:amount),
).to match_array(expected_credits)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment