Sha256: 96ed4d0b6fd310c128e41cdf3a2267515436e800fb4f05b92175aa64d8b67bf9

Contents?: true

Size: 335 Bytes

Versions: 46

Compression:

Stored size: 335 Bytes

Contents

require 'test/unit'

require 'puma'
require 'puma/configuration'

class TestConfigFile < Test::Unit::TestCase
  def test_app_from_app_DSL
    opts = { :config_file => "test/config/app.rb" }
    conf = Puma::Configuration.new opts
    conf.load

    app = conf.app

    assert_equal [200, {}, ["embedded app"]], app.call(nil)
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
puma-2.0.0.b5 test/test_config.rb
puma-2.0.0.b4-java test/test_config.rb
puma-2.0.0.b4 test/test_config.rb
puma-2.0.0.b3-java test/test_config.rb
puma-2.0.0.b3 test/test_config.rb
puma-2.0.0.b2-java test/test_config.rb
puma-2.0.0.b2 test/test_config.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/puma-1.6.3/test/test_config.rb
puma-2.0.0.b1-java test/test_config.rb
puma-2.0.0.b1 test/test_config.rb
puma-1.6.3-java test/test_config.rb
puma-1.6.3 test/test_config.rb
puma-1.6.2-java test/test_config.rb
puma-1.6.2 test/test_config.rb
puma-1.6.1-java test/test_config.rb
puma-1.6.1 test/test_config.rb
puma-1.6.0-java test/test_config.rb
puma-1.6.0 test/test_config.rb
puma-1.5.0-java test/test_config.rb
puma-1.5.0 test/test_config.rb