A TDD Example
28-Jun-2019 2662
As part of my TDD learning process I faced this problem and found hard to solve it following the TDD rules.So I started this discussion --> https://dev.to/delbetu/solve-this-simple-problem-with-tdd-5e41The TDD process I tried to follow at that point was:Write a set of tests (input--->expected-output)Pick the simplest test case to solve. (RED)(Write a failing spec)Write the most naive code change that solves the current set of tests. (GREEN)Check if DRY is needed (Refactor)Go back to 2.
A TDD Example #ruby #rubydeveloper #rubyonrails #Example https://rubyonrails.ba/link/a-tdd-example