A simple Rails To Do app built using a TDD approach. I wanted to become more familiar with feature testing using Capybara (github.com/jnicklas/capybara).
Blog post about my TDD experience: medium.com/@stevenpslade/nobody-told-me-how-fun-tdd-was-eaf5a25fed07#.wkun1nqr3
My approach:
-
Write out what a feature was supposed to do. ie. A user can add a task to a list.
-
Write tests using Rspec and Capybara for the desired feature.
-
Run tests and build out code based off error messages. i.e. No controller for Lists (so we add a Lists controller).
-
End result is various passing tests for the core features of the To Do List app along with the working code to have the app running.