Sha256: 5e123c97e22b37a9d128ab26ebc0fb3fd5f3780503953e33b69778da37e303f9
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
require 'spec_helper' require 'apache/config' describe Apache::Config, "logging directives" do let(:apache) { Apache::Config } before { apache.reset! } it "should handle a defined log type" do apache.rotate_logs_path = '/path/to/rotatelogs' [ :custom, :error, :script, :rewrite ].each do |type| apache.reset! apache.send("#{type}_log".to_sym, 'test', 'test2') apache.to_a.should == [ %{#{type.to_s.capitalize}Log "test" test2} ] apache.reset! apache.send("rotate_#{type}_log".to_sym, 'test', 86400, 'test2') apache.to_a.should == [ %{#{type.to_s.capitalize}Log "|/path/to/rotatelogs test 86400" test2} ] end end it "should give log formats" do apache.combined_log_format apache.common_log_format end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apache-config-generator-0.2.7 | spec/apache/logging_spec.rb |
apache-config-generator-0.2.6 | spec/apache/logging_spec.rb |