apache-config-generator/spec/performance_spec.rb
2010-05-07 16:04:06 -04:00

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