Use a TDD approach, to either:
-
Create your own small application
OR
-
create a single serving (no users) version of Twitter. The app should have:
-
Tweet model
-
body (must be present, max 140 characters long)
-
author
-
TweetsController
-
An
indexaction which shows all of the tweets -
A
showaction to view a specific tweet -
A
newaction (optional, you can put the form onindex) -
A
createaction where tweets are created -
tweet_spec.rb
-
Testing validations of body (presence and length)
-
Testing any addition methods you add
-
tweets_controller_spec.rb
-
Test each controller action
-
No need to test private actions
**Extra Credit**
Implement Users using a TDD approach