Sha256: 335a12a4905f4b5f977f2fcf5535fb37991fc7ef66a9c50a258419c5eef7b406

Contents?: true

Size: 334 Bytes

Versions: 40

Compression:

Stored size: 334 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({})
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/puma-2.7.1/test/test_config.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/puma-2.6.0/test/test_config.rb
puma-2.7.1-java test/test_config.rb
puma-2.7.1 test/test_config.rb
puma-2.7.0-java test/test_config.rb
puma-2.7.0 test/test_config.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/puma-2.6.0/test/test_config.rb
puma-2.6.0-java test/test_config.rb
puma-2.6.0 test/test_config.rb
puma-2.5.1-java test/test_config.rb
puma-2.5.1 test/test_config.rb
puma-2.5.0-java test/test_config.rb
puma-2.5.0 test/test_config.rb
puma-2.4.1-java test/test_config.rb
puma-2.4.1 test/test_config.rb
puma-2.4.0-java test/test_config.rb
puma-2.4.0 test/test_config.rb
puma-2.3.2-java test/test_config.rb
puma-2.3.2 test/test_config.rb
puma-2.3.1-java test/test_config.rb