Sha256: 30389058a95605d0a2f7951b32210b7ca572e8564396a537a495f679870d590e

Contents?: true

Size: 333 Bytes

Versions: 3

Compression:

Stored size: 333 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" }
    assert_equal(expected, App.config)

    assert_equal("def", App.config[:abc])
    assert_equal("def", App.config["abc"])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiospiel-app-0.2.3 test/config_test.rb
radiospiel-app-0.2.2 test/config_test.rb
radiospiel-app-0.2.1 test/config_test.rb