1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/test_config.rb
2011-12-07 13:43:10 -08:00

16 lines
335 B
Ruby

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