Project

General

Profile

Defect #30811 » rename_configration_fixtures.patch

Takenori TAKAKI, 2019-02-19 06:16

View differences:

test/unit/lib/redmine/configuration_test.rb
23 23
  end
24 24

  
25 25
  def test_empty
26
    assert_kind_of Hash, load_conf('empty.yml', 'test')
26
    assert_kind_of Hash, load_conf('empty.yml.txt', 'test')
27 27
  end
28 28

  
29 29
  def test_default
30
    assert_kind_of Hash, load_conf('default.yml', 'test')
30
    assert_kind_of Hash, load_conf('default.yml.txt', 'test')
31 31
    assert_equal 'foo', @conf['somesetting']
32 32
  end
33 33

  
34 34
  def test_no_default
35
    assert_kind_of Hash, load_conf('no_default.yml', 'test')
35
    assert_kind_of Hash, load_conf('no_default.yml.txt', 'test')
36 36
    assert_equal 'foo', @conf['somesetting']
37 37
  end
38 38

  
39 39
  def test_overrides
40
    assert_kind_of Hash, load_conf('overrides.yml', 'test')
40
    assert_kind_of Hash, load_conf('overrides.yml.txt', 'test')
41 41
    assert_equal 'bar', @conf['somesetting']
42 42
  end
43 43

  
44 44
  def test_with
45
    load_conf('default.yml', 'test')
45
    load_conf('default.yml.txt', 'test')
46 46
    assert_equal 'foo', @conf['somesetting']
47 47
    @conf.with 'somesetting' => 'bar' do
48 48
      assert_equal 'bar', @conf['somesetting']
(2-2/2)