Sha256: 18d965a7d2e0ed2b0d95d4508c7318b875ad5ea5d2f94b42d85d73d4c242fa2a
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
# -*- encoding: utf-8 -*- require 'minitest/autorun' require 'webgen/core_ext' class TestCoreExtensions < MiniTest::Unit::TestCase def test_webgen_require assert_raises(Webgen::LoadError) { webgen_require('unknown_library_here') } webgen_require('webgen/core_ext') rescue flunk end def test_hash_symbolize_keys! h = {'a' => 'a', :b => 'b', 5 => 5}.symbolize_keys assert_equal('a', h[:a]) assert_equal('b', h[:b]) assert_equal(5, h[5]) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webgen-1.0.0.beta3 | test/webgen/test_core_ext.rb |
webgen-1.0.0.beta2 | test/webgen/test_core_ext.rb |
webgen-1.0.0.beta1 | test/webgen/test_core_ext.rb |