A TDD Example

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 https://rubyonrails.ba/single/a-tdd-example

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles