1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-10 19:23:06 +00:00

Merged r17889 from trunk to 3.4-stable (#30811).

git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@18130 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-05-05 02:03:34 +00:00
parent bf39410402
commit 0dd2493e79
5 changed files with 5 additions and 5 deletions

View File

@ -23,26 +23,26 @@ class Redmine::ConfigurationTest < ActiveSupport::TestCase
end
def test_empty
assert_kind_of Hash, load_conf('empty.yml', 'test')
assert_kind_of Hash, load_conf('empty.yml.example', 'test')
end
def test_default
assert_kind_of Hash, load_conf('default.yml', 'test')
assert_kind_of Hash, load_conf('default.yml.example', '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.example', '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.example', 'test')
assert_equal 'bar', @conf['somesetting']
end
def test_with
load_conf('default.yml', 'test')
load_conf('default.yml.example', 'test')
assert_equal 'foo', @conf['somesetting']
@conf.with 'somesetting' => 'bar' do
assert_equal 'bar', @conf['somesetting']