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
end
def test_empty
assert_kind_of Hash, load_conf('empty.yml', 'test')
assert_kind_of Hash, load_conf('empty.yml.txt', 'test')
end
def test_default
assert_kind_of Hash, load_conf('default.yml', 'test')
assert_kind_of Hash, load_conf('default.yml.txt', 'test')
assert_equal 'foo', @conf['somesetting']
end
def test_no_default
assert_kind_of Hash, load_conf('no_default.yml', 'test')
assert_kind_of Hash, load_conf('no_default.yml.txt', 'test')
assert_equal 'foo', @conf['somesetting']
end
def test_overrides
assert_kind_of Hash, load_conf('overrides.yml', 'test')
assert_kind_of Hash, load_conf('overrides.yml.txt', 'test')
assert_equal 'bar', @conf['somesetting']
end
def test_with
load_conf('default.yml', 'test')
load_conf('default.yml.txt', 'test')
assert_equal 'foo', @conf['somesetting']
@conf.with 'somesetting' => 'bar' do
assert_equal 'bar', @conf['somesetting']
(2-2/2)