change to handle CGI

This commit is contained in:
John Bintz 2010-05-05 14:43:50 -04:00
parent 45b7062cc3
commit 209942c5a7
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ module Apache
def apachify(name)
case name
when String, Symbol
name.to_s.split("_").collect(&:capitalize).join.gsub('Ssl', 'SSL')
name.to_s.split("_").collect(&:capitalize).join.gsub('Ssl', 'SSL').gsub('Cgi', 'CGI')
when Array
name.collect { |n| apachify(n) }
end

View File

@ -30,6 +30,7 @@ describe Apache::Config, "should handle the basics of Apache config" do
Apache::Config.apachify("test").should == "Test"
Apache::Config.apachify("test_full_name").should == "TestFullName"
Apache::Config.apachify("ssl_option").should == "SSLOption"
Apache::Config.apachify("exec_cgi").should == "ExecCGI"
end
it "should quoteize properly" do