Skip to content

Deepak1711/Box8-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Box8-Assignment

cart_items = { "cart_items": [ { "product_id": 1, "quantity": 1, "unit_cost": 200 } ] }

  • Cart items are passed while creating order, because they can be used in any other action on order, hence making it generic for future.
    Order.new(cart_items).apply_promocode('BOGO', 2)

  • Each test case is mentioned for any one of the coupon, not repetitively for all the coupons. The intention is to just give the idea of it.

  • To run the test cases ruby order_test.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages