Sha256: 4ee01d1b0e24e95cc277a311705135e49b62f837b578d612cc78f6d57aad9a2d

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require 'apache/modules'

describe Apache::Modules, "should build a list of modules" do
  before do
    Apache::Modules.reset!
  end

  it "should handle method_missing" do
    Apache::Modules.mine

    Apache::Modules.modules.should == [ 'LoadModule "mine_module" "modules/mod_mine.so"' ]
  end

  it "should build a set of modules" do
    Apache::Modules.build(:this, :that) do
      mine "my_path"
    end.should == [
      '',
      'LoadModule "this_module" "modules/mod_this.so"',
      'LoadModule "that_module" "modules/mod_that.so"',
      'LoadModule "mine_module" "my_path"',
      ''
    ]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apache-config-generator-0.2.7 spec/apache/modules_spec.rb
apache-config-generator-0.2.6 spec/apache/modules_spec.rb