2026-07-15 10:57:09 -04:00
2026-07-15 10:57:09 -04:00
2026-07-15 10:57:09 -04:00
2026-07-15 10:57:09 -04:00

Ruby Technical Test

Dependencies

  • Ruby 4.0.6
  • Minitest 6.0.6

Instructions

Checkout class is in checkout.rb

Run tests with ruby -Ilib:test tests.rb

main.rb is a scratchpad

Initial Thoughts

  • Cart can be stored in an array of strings
  • Cart items should be validated against a known list of products
  • We need a hash of products and their prices

Open Questions

  • How do we apply discounts?
S
Description
Example checkout in ruby
Readme 39 KiB
Languages
Ruby 100%