Back-end Engineering
Red-Green-Refactor: Mastering TDD with Ruby & RSpec
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.
RSpec
Ruby
5 lessons
27 practices
3 hours
Badge for Programming, Algorithms, and Data Structures,
Programming, Algorithms, and Data Structures
Course details
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
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal