This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "flush the cache" | |
task :flush_cache do | |
puts <<-HERE | |
_ | |
.----------/ |<=== floppy disk | |
/ | | | |
/ /| | _________ | |
/ / | | | .-----. | | |
/___________/ /| | |=| |-| | |
[____________]/ | | |~|_____|~| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple app that implements a naive session-based login, to demonstrate the problems with testing sessions in Sinatra. | |
require 'rubygems' | |
require 'sinatra/base' | |
class LoginApp < Sinatra::Base | |
enable :sessions | |
get '/' do |