Skip to content

Commit 7f5992d

Browse files
committed
Fixed image in Episode 01
1 parent d12426e commit 7f5992d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎episodes/01-introduction-to-tdd.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ By writing the tests first, you forced yourself to become the *user* of your own
135135

136136
What we just did is the first step of **Test-Driven Development (TDD)**. TDD is a highly disciplined software workflow built on a tight, repeating three-step loop:
137137

138-
![TDD Cycle](../fig/tdd-cycle.png)
138+
![Red-Green-Refactor cycle, liberally borrowed from a blog at https://khalilstemmler.com/](fig/red-green-refactor.png){alt="Cycle with three nodes: 'Red (write a failing test)', followed by 'Green (write just enough code to pass the test)', followed by 'Refactor (improve the code with tests intact)', then back to Red"}
139+
139140

140141
1. **RED:** Write a test for a behavior you want, run it, and watch it fail.
141142
2. **GREEN:** Write the absolute simplest, dirtiest code possible to make the test pass.

0 commit comments

Comments
 (0)