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