apache-config-generator/spec/apache/performance_spec.rb
2010-11-24 14:36:09 -05:00

17 lines
369 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.sort.should == [
'KeepAlive On',
'KeepAliveTimeout 10',
'MaxKeepAliveRequests 100'
]
end
end