spec/reel/app_spec.rb in reel-0.3.0 vs spec/reel/app_spec.rb in reel-0.4.0.pre
- old
+ new
@@ -16,16 +16,16 @@
before(:each) do
@app = app.new(example_addr, example_port)
end
after(:each) do
- @app.server.terminate if @app.server.alive?
+ @app.server.terminate if @app && @app.server.alive?
end
it 'responds to get requests' do
res = Http.with_response(:object).get example_url
res.status.should == 200
- res.headers.should == {"Connection" => "Keep-Alive", "Content-Length" => res.body.length.to_s}
+ res.headers.should == {"Content-Length" => res.body.length.to_s}
res.body.should == "hello foo"
end
it 'terminates the server' do
@app.terminate