Focus on the core TDD workflow: "Red-Green-Refactor." Develop skills by writing failing tests (Red), crafting code to pass them (Green), and refactoring while keeping tests passing (Refactor). This course emphasizes practice over new theory, allowing you to hone your TDD abilities with various coding challenges.
Overview
Syllabus
- Unit 1: Practicing Test Driven Development with Ruby and RSpec
- Applying a Percentage-Based Discount
- Zero Discount Handling Task
- Calculating Accurate Decimal Discounts
- Negative Price Error Handling in Discount Calculation
- Discount Function Error Handling and Calculation Task
- Negative Discount Handling
- Unit 2: Introduction to TDD and RSpec
- Non-Numeric Price Input Handling in Discount Calculation
- Handling Non-Numeric Discount Inputs in Ruby
- Handling Very Small Prices in Discount Calculation
- Minimum Discount Percentage Application Task
- Capping Maximum Discount Amount in Pricing Function
- Unit 3: Building a Shopping Cart with TDD in Ruby
- Starting with an Empty Shopping Cart in Ruby
- Adding Items to a Shopping Cart
- Adding Multiple Items to Shopping Cart in Ruby
- Handling Multiple Quantities in Shopping Cart
- Removing an Item from ShoppingCart Task
- Unit 4: Integrating Advanced Features into the ShoppingCart with TDD in Ruby
- Removing a Non-Existent Item in a Cart Task
- Applying Percentage Discount in Shopping Cart
- Applying Bulk Discount to Shopping Cart
- Clear All Items in Shopping Cart Task
- Updating Item Quantity in ShoppingCart
- Unit 5: Practicing Advanced TDD with Ruby through ShoppingCart Enhancements
- Quantity Limit for Single Item in Shopping Cart
- Retrieving Item Details by ID
- Applying Discount Codes in a Shopping Cart
- Implementing Invalid Discount Code Error Handling in ShoppingCart
- Adding an Existing Item to the Shopping Cart
- Adding to an Existing Item in ShoppingCart with Quantity Limit Enforcement