Sha256: ca57e0a2e2e7dd2d51ed12d77eee2a85c3b9f9456f6ab1b1fbcbf7b6d18b9ac4

Contents?: true

Size: 617 Bytes

Versions: 4

Compression:

Stored size: 617 Bytes

Contents

# This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2010, Sebastian Staudt

require 'test_helper'

class TestIniProvider < Test::Unit::TestCase

  context 'A configuration provider for INI files' do

    should 'return correct values' do
      ini = File.join(File.dirname(__FILE__), 'config', 'test.ini')
      expected = {
        'section' => {
          'value' => '1',
          'test1' => '1',
          'test2' => '2'
        }
      }
      assert_equal expected, Rubikon::Config::IniProvider.load_config(ini)
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubikon-0.5.3 test/test_ini_provider.rb
rubikon-0.5.2 test/test_ini_provider.rb
rubikon-0.5.1 test/test_ini_provider.rb
rubikon-0.5.0 test/test_ini_provider.rb