Sha256: a9f89d1aac1265ffdf9a721288380d3f9736cb777d7384c5a9d1d3401a4cf0bf

Contents?: true

Size: 673 Bytes

Versions: 5

Compression:

Stored size: 673 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'optparse'

describe Trinidad::Extensions do

  before(:each) do
    @extensions = {:foo => {:bar => :bazz}}
  end

  it "configures the server with new stuff" do
    lambda {Trinidad::Extensions.configure_server_extensions(@extensions, nil)}.should_not raise_error
    lambda {Trinidad::Extensions.const_get(:FooServerExtension)}.should_not raise_error
  end

  it "configures the webapp with new stuff" do
    lambda {Trinidad::Extensions.configure_webapp_extensions(@extensions, nil, nil)}.should_not raise_error
    lambda {Trinidad::Extensions.const_get(:FooWebAppExtension)}.should_not raise_error
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
trinidad-0.8.2 spec/trinidad/extensions_spec.rb
trinidad-0.8.1 spec/trinidad/extensions_spec.rb
trinidad_jars-0.1.1 spec/trinidad/extensions_spec.rb
trinidad-0.8.0 spec/trinidad/extensions_spec.rb
trinidad_jars-0.1.0 spec/trinidad/extensions_spec.rb