开发者

how to test sinatra app with session support

the following example开发者_高级运维 in rack-test sounds not works in sinatra 1.1.2

get '/url/path', nil, "rack.session" => {:key => "value"} 

thanks


try disabling sessions in your test environment. This blog post has a good example: http://benprew.posterous.com/testing-sessions-with-sinatra

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜