Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.335 kB
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
Jump to Line
Something went wrong with that request. Please try again.