Back-end Engineering
3 learners
Foundations of TDD in Ruby and RSpec: The Fundamentals
This course introduces you to Test-Driven Development (TDD) in Ruby, focusing on the Red-Green-Refactor cycle, embracing the TDD mindset, and setting up a productive environment with RSpec. You'll learn best practices like adhering to SOLID principles and utilizing dependency injection, while understanding TDD's influence on code quality and development speed compared to traditional methods.
Rspec
Ruby
See path
6 lessons
27 practices
4 hours
Badge for Programming, Algorithms, and Data Structures,
Programming, Algorithms, and Data Structures
Lessons and practices
Writing a Test for Non-Existent Method Using TDD
Implement the Sum Function in Minimal TDD Style
Refactoring the Sum Function
Testing the Add Function in TDD Red Phase
Transitioning to the Green Phase in TDD: Implementing the add_two_numbers Method
Refactor Unit Tests to Use Parameterized Tests with RSpec
Writing Tests for Shopping Cart Calculation
Implementing Calculate Total for Shopping Cart Task
Shopping Cart Total Calculation Task
Implement Initial Functionality for Calculate Total Function
Refactor the calculate_total Method
Crafting a Failing Test to Achieve TDD Mastery
Calculate Total Cost of Shopping Cart
Refactor to Use Ruby's Inject Method
Understanding RSpec with Asynchronous User Models
Verify User Creation with RSpec
Refactor Test Setup with RSpec's Let Method
Grouping Email-Related Tests with Nested Describe Blocks in RSpec
Test Invalid Email Throws Error in User Class
Write an Asynchronous Test for Fetching User in Ruby
Testing a UserManager with Red-Green-Refactor Approach
Implementing a User Manager in Ruby
Refactor Your Tests in UserManager Class
Implementing a User Logging Feature with TDD in Ruby
Implementing Logging with Dependency Injection in UserManager
Refactoring UserManager for Code Quality
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