17 lines
364 B
Ruby
17 lines
364 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Apache::Config, "performance settings" do
|
||
|
let(:apache) { Apache::Config }
|
||
|
before { apache.reset! }
|
||
|
|
||
|
it "should set keepalive" do
|
||
|
apache.activate_keepalive({ :timeout => 10, :requests => 100 })
|
||
|
|
||
|
apache.to_a.should == [
|
||
|
'KeepAlive On',
|
||
|
'MaxKeepAliveRequests 100',
|
||
|
'KeepAliveTimeout 10'
|
||
|
]
|
||
|
end
|
||
|
end
|