Created
March 8, 2009 00:11
-
-
Save tannerburson/75506 to your computer and use it in GitHub Desktop.
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
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