- Write test first.
- Correct the test so it passes. (Going Green)
- Refactor.
- Each creates a unique instance variable for each "it" unit test. Proper syntax is:
before :each do
@variable_name = ClassName.new
end
- Let passes the same instance variable to all "it" unit tests. Proper syntax is:
before :variable_name do
ClassName.new
end