diff --git a/README.md b/README.md index 889d1d7..298d047 100644 --- a/README.md +++ b/README.md @@ -94,9 +94,11 @@ applications trivial (and free). ## Exercise -1. Use this repository to make your own, called **yourname**-week-06-sinatra -1. (optional) Add a feature and a spec for the new feature -1. Deploy the app to Heroku +Review the sinatra [documentation](http://www.sinatrarb.com/intro.html). +1. Use this repository to make your own, called **yourname**-week-06-sinatra . +1. Complete the two pending specs. One of them describes a feature that you will need to write. +1. (optional) Add yet another feature and a spec for it. +1. Deploy the app to Heroku. ## Exploration diff --git a/spec/app_spec.rb b/spec/app_spec.rb index 6b471e5..0600030 100644 --- a/spec/app_spec.rb +++ b/spec/app_spec.rb @@ -11,7 +11,7 @@ def app TwitterInfo end - it "should provide instructions" do + it "should provide helpful instructions" do get "/" @@ -29,6 +29,26 @@ def app end - it "should retrieve the user's follower count for any valid username" + + ## + # this spec needs to be written. + # + it "should display the user's follower count for any valid username" + + + + ## + # this spec is a placeholder a feature that needs to be written. + # please write the spec and the feature. + # gold star for writing the spec before the lib code. :) + # + # hints: + # use a begin/rescue/end block to rescue the error raised by + # the Twitter gem when a username cannot be found. + # + # when that happens, return a new template file named 404.haml + # + it "should return a custom 404 page when the username cannot be found" + end