2011-09-27 19:30:38 +00:00
|
|
|
require 'spec_helper'
|
2010-05-07 17:56:49 +00:00
|
|
|
|
|
|
|
describe Apache::Master, "should provide basic helpers for configuration" do
|
|
|
|
let(:apache) { Apache::Config }
|
|
|
|
|
|
|
|
before { apache.reset! }
|
|
|
|
|
|
|
|
it "should create the list of options" do
|
|
|
|
{ :options => 'Options', :index_options => 'IndexOptions' }.each do |method, tag|
|
|
|
|
apache.reset!
|
|
|
|
apache.send(method, :test, 'test2')
|
|
|
|
apache.to_a.should == [ "#{tag} Test Test2" ]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|