Sha256: 53100318f00126c449f0842a3c731fa8fdb15ab161a81575b43b88da1a9c3714
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
require 'test_helper' require 'jubilee/configuration' class TestConfig < MiniTest::Unit::TestCase def setup end def test_load @config = Jubilee::Configuration.new({rackup: "config/app.rb"}) resp = [200, {"Content-Type" => "text/plain"}, ["embeded app"]] assert_equal resp, @config.app.call({}) end def test_config_invalid tmp = Tempfile.new("jubilee_config") tmp.syswrite(%q(abcd "helloword")) assert_raises(NoMethodError) do Jubilee::Configuration.new(config_file: tmp.path) end end def test_config_non_exist tmp = Tempfile.new("jubilee_config") path = tmp.path tmp.close! assert_raises(Errno::ENOENT) do Jubilee::Configuration.new(config_file: path) end end end
Version data entries
4 entries across 4 versions & 1 rubygems