change to handle CGI
This commit is contained in:
parent
45b7062cc3
commit
209942c5a7
@ -59,7 +59,7 @@ module Apache
|
|||||||
def apachify(name)
|
def apachify(name)
|
||||||
case name
|
case name
|
||||||
when String, Symbol
|
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
|
when Array
|
||||||
name.collect { |n| apachify(n) }
|
name.collect { |n| apachify(n) }
|
||||||
end
|
end
|
||||||
|
@ -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").should == "Test"
|
||||||
Apache::Config.apachify("test_full_name").should == "TestFullName"
|
Apache::Config.apachify("test_full_name").should == "TestFullName"
|
||||||
Apache::Config.apachify("ssl_option").should == "SSLOption"
|
Apache::Config.apachify("ssl_option").should == "SSLOption"
|
||||||
|
Apache::Config.apachify("exec_cgi").should == "ExecCGI"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should quoteize properly" do
|
it "should quoteize properly" do
|
||||||
|
Loading…
Reference in New Issue
Block a user