Sha256: 4e5a3d61840717ca5776ddfb9b593468a3ae9f23dc941b610d8237f024f8b233
Contents?: true
Size: 399 Bytes
Versions: 6
Compression:
Stored size: 399 Bytes
Contents
require 'helper' class TestConfig < Test::Unit::TestCase def test_read_from_test_config App.root = File.dirname __FILE__ expected = {"abc"=>"def", "dummy"=>"dummy", "erbed"=> "test" } expected.each do |key, expected_value| assert_equal(expected_value, App.config[key]) end assert_equal("def", App.config[:abc]) assert_equal("def", App.config["abc"]) end end
Version data entries
6 entries across 6 versions & 2 rubygems