apache-config-generator/spec/apache/apachify_spec.rb

26 lines
668 B
Ruby
Raw Normal View History

2010-11-24 19:36:09 +00:00
require 'spec_helper'
2010-05-18 16:43:57 +00:00
describe Apache::Apachify, "extends objects to apachify themselves" do
it "should Apachify the name" do
[
%w{test Test},
%w{test_full_name TestFullName},
%w{ssl_option SSLOption},
%w{exec_cgi ExecCGI},
%w{authz_ldap_authoritative AuthzLDAPAuthoritative},
%w{authz_ldap_url AuthzLDAPURL},
[ ["name", "other_name"], [ 'Name', 'OtherName' ] ]
].each do |input, output|
input.apachify.should == output
end
end
2010-05-19 14:47:18 +00:00
it "should optionify the symbol" do
[
[ :not_multiviews, '-Multiviews' ]
].each do |symbol, output|
symbol.optionify.should == output
end
end
2010-05-18 16:43:57 +00:00
end