Skip to content
Browse files

Added pending spec for unwritten feature. General cleanup.

  • Loading branch information...
1 parent 4e70143 commit 6d35a4a67b2cc1a5318e09fdd918bbc784b3091f @bfaloona bfaloona committed Nov 8, 2011
Showing with 27 additions and 5 deletions.
  1. +5 −3 README.md
  2. +22 −2 spec/app_spec.rb
View
8 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
View
24 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

0 comments on commit 6d35a4a

Please sign in to comment.
Something went wrong with that request. Please try again.