Skip to content

Instantly share code, notes, and snippets.

@tannerburson
Created March 8, 2009 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tannerburson/75506 to your computer and use it in GitHub Desktop.
Save tannerburson/75506 to your computer and use it in GitHub Desktop.
Test::Unit::TestCase.send :include, Sinatra::Test
class Waste < Sinatra::Base
get '/' do
puts session[:test]
end
end
describe 'Waste' do
before { @app = Waste }
it 'should have sessions working' do
get '/', {}, :session => { :test => "test" }
body.should.equal "test"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment