spec/unit/server_spec.rb in hatetepe-0.5.0.pre.2 vs spec/unit/server_spec.rb in hatetepe-0.5.0.pre.3
- old
+ new
@@ -26,20 +26,21 @@
s.extend Hatetepe::Server
s.stub({
:config => {
:host => "127.0.5.1",
:port => 3000,
- :app => stub("app")
+ :app => app
},
:send_data => nil
})
s.stub(:comm_inactivity_timeout=)
+ s.stub(:close_connection)
s.post_init
end
end
let :app do
- subject.config[:app]
+ stub("app", :call => nil)
end
let :http_request do
[
"POST /foo/bar?key=value HTTP/1.1",