Job category:
Software 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,

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

Turn screen time into skills time

Practice anytime, anywhere with our mobile app.
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