Sha256: ae95b8c9944979e5a8a563893a6c6d6208412144d5b08bbc003d1173d9104422

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

require 'test_helper'
require 'jubilee/configuration'

class TestConfig < MiniTest::Unit::TestCase
  def setup
    @config = Jubilee::Configuration.new({rackup: "config/app.rb"})
  end
  def test_load
    @config.load
    resp = [200, {"Content-Type" => "text/plain"}, ["embeded app"]]
    #skip "hard to test because of Rack::Lint"
    assert_equal resp, @config.app.call({})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jubilee-0.4.1 test/jubilee/test_config.rb
jubilee-0.4.0 test/jubilee/test_config.rb
jubilee-0.2.2 test/jubilee/test_config.rb
jubilee-0.2.1 test/jubilee/test_config.rb