Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Added pending spec for unwritten feature. General cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfaloona committed Nov 9, 2011
1 parent 4e70143 commit 6d35a4a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -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

Expand Down
24 changes: 22 additions & 2 deletions spec/app_spec.rb
Expand Up @@ -11,7 +11,7 @@ def app
TwitterInfo
end

it "should provide instructions" do
it "should provide helpful instructions" do

get "/"

Expand All @@ -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.