Skip to content

Instantly share code, notes, and snippets.

@heavysixer
Created January 31, 2009 02:30
Show Gist options
  • Save heavysixer/55411 to your computer and use it in GitHub Desktop.
Save heavysixer/55411 to your computer and use it in GitHub Desktop.
AccountsController responding to GET index
- should expose all accounts as @accounts
FacebookController route generation
- should map {:controller=>'facebook', :action=>'authorized'} to /authorized
- should map {:controller=>'facebook', :action=>'authorize_redirect'} to /authorize_redirect
- should map {:controller=>'facebook', :action=>'installed'} to /installed
- should map {:controller=>'facebook', :action=>'privacy'} to /privacy
- should map {:controller=>'facebook', :action=>'uninstalled'} to /uninstalled
- should map {:controller=>'facebook', :action=>'help'} to /help
FacebookController route recognition
- should generate params {:controller=>'facebook', :action=>'authorized'} from get /authorized
- should generate params {:controller=>'facebook', :action=>'authorized'} from get /authorize_redirect
- should generate params {:controller=>'facebook', :action=>'installed'} from get /installed
- should generate params {:controller=>'facebook', :action=>'privacy'} from get /privacy
- should generate params {:controller=>'facebook', :action=>'uninstalled'} from get /uninstalled
- should generate params {:controller=>'facebook', :action=>'help'} from get /help
FacebookController under a rest request from inside Facebook with the application installed handling GET /facebook.fbml
- should redirect to errors page if facebook account cannot be found
FacebookController under a rest request from inside Facebook with the application installed handling POST /facebook/installed.fbml
- should redirect to the index action
FacebookController under a rest request from inside Facebook with the application installed handling POST /facebook/uninstalled.fbml
- should deactivate a facebook account but not destroy the record
- should render an error if the uninstall fails
- should render an error if the account cannot be found during uninstall
FacebookController when accessing informational pages
- should display the about page
- should display the help page
- should display the privacy page
FacebookController under a rest request from outside of Facebook handling GET /facebook
- should redirect you to the home url
MatchesController responding to GET index
- should expose all matches as @matches
MatchesController responding to GET show
- should expose the requested match as @match
MatchesController responding to GET new
- should expose a new match as @match
MatchesController responding to GET edit
- should expose the requested match as @match
MatchesController responding to POST create with valid params
- should expose a newly created match as @match
- should redirect to the created match
MatchesController responding to POST create with invalid params
- should expose a newly created but unsaved match as @match
- should re-render the 'new' template
MatchesController responding to PUT udpate with valid params
- should update the requested match
- should expose the requested match as @match
- should redirect to the match
MatchesController responding to PUT udpate with invalid params
- should update the requested match
- should expose the match as @match
- should re-render the 'edit' template
MatchesController responding to DELETE destroy
- should destroy the requested match
- should redirect to the matches list
MatchesController route generation
- should map #index
- should map #new
- should map #show
- should map #edit
- should map #create
- should map #update
- should map #destroy
MatchesController route recognition
- should generate params for #index
- should generate params for #new
- should generate params for #create
- should generate params for #show
- should generate params for #edit
- should generate params for #update
- should generate params for #destroy
PhotosController responding to GET index
- should expose all photos as @photos
PhotosController responding to GET show
- should expose the requested photo as @photo
PhotosController responding to GET new
- should expose a new photo as @photo
PhotosController responding to GET edit
- should expose the requested photo as @photo
PhotosController responding to POST create with valid params
- should expose a newly created photo as @photo
- should redirect to the created photo
PhotosController responding to POST create with invalid params
- should expose a newly created but unsaved photo as @photo
- should re-render the 'new' template
PhotosController responding to PUT udpate with valid params
- should update the requested photo
- should expose the requested photo as @photo
- should redirect to the photo
PhotosController responding to PUT udpate with invalid params
- should update the requested photo
- should expose the photo as @photo
- should re-render the 'edit' template
PhotosController responding to DELETE destroy
- should destroy the requested photo
- should redirect to the photos list
PhotosController route generation
- should map #index
- should map #new
- should map #show
- should map #edit
- should map #create
- should map #update
- should map #destroy
PhotosController route recognition
- should generate params for #index
- should generate params for #new
- should generate params for #create
- should generate params for #show
- should generate params for #edit
- should generate params for #update
- should generate params for #destroy
MatchesHelper
- should be included in the object returned by #helper
PhotosHelper
- should be included in the object returned by #helper
Account
- should create a new instance given valid attributes
- should deactive the account
- should have many matches either as the owner or opponent
Match
- should create a new instance given valid attributes
- should be inactive until launched
- should not create a match where the opponent and the account are the same
Photo
- upload a file to the server
- should not save files of the wrong file type
- should not save the file if the account_id is missing
Vote
- should create a new instance given valid attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment