apache-config-generator/spec/performance_spec.rb

17 lines
369 B
Ruby
Raw Normal View History

2010-05-07 20:04:06 +00:00
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 })
2010-10-05 19:36:02 +00:00
apache.to_a.sort.should == [
2010-05-07 20:04:06 +00:00
'KeepAlive On',
2010-10-05 19:36:02 +00:00
'KeepAliveTimeout 10',
'MaxKeepAliveRequests 100'
2010-05-07 20:04:06 +00:00
]
end
end