apache-config-generator/spec/performance_spec.rb

17 lines
364 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 })
apache.to_a.should == [
'KeepAlive On',
'MaxKeepAliveRequests 100',
'KeepAliveTimeout 10'
]
end
end