mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Rename test/fixtures/configuration/*.yml.example to test/fixtures/files/configuration/*.yml (#35466).
git-svn-id: http://svn.redmine.org/redmine/trunk@21067 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -25,26 +25,26 @@ class Redmine::ConfigurationTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_empty
|
||||
assert_kind_of Hash, load_conf('empty.yml.example', 'test')
|
||||
assert_kind_of Hash, load_conf('empty.yml', 'test')
|
||||
end
|
||||
|
||||
def test_default
|
||||
assert_kind_of Hash, load_conf('default.yml.example', 'test')
|
||||
assert_kind_of Hash, load_conf('default.yml', 'test')
|
||||
assert_equal 'foo', @conf['somesetting']
|
||||
end
|
||||
|
||||
def test_no_default
|
||||
assert_kind_of Hash, load_conf('no_default.yml.example', 'test')
|
||||
assert_kind_of Hash, load_conf('no_default.yml', 'test')
|
||||
assert_equal 'foo', @conf['somesetting']
|
||||
end
|
||||
|
||||
def test_overrides
|
||||
assert_kind_of Hash, load_conf('overrides.yml.example', 'test')
|
||||
assert_kind_of Hash, load_conf('overrides.yml', 'test')
|
||||
assert_equal 'bar', @conf['somesetting']
|
||||
end
|
||||
|
||||
def test_with
|
||||
load_conf('default.yml.example', 'test')
|
||||
load_conf('default.yml', 'test')
|
||||
assert_equal 'foo', @conf['somesetting']
|
||||
@conf.with 'somesetting' => 'bar' do
|
||||
assert_equal 'bar', @conf['somesetting']
|
||||
@@ -56,7 +56,7 @@ class Redmine::ConfigurationTest < ActiveSupport::TestCase
|
||||
|
||||
def load_conf(file, env)
|
||||
@conf.load(
|
||||
:file => File.join(Rails.root, 'test', 'fixtures', 'configuration', file),
|
||||
:file => file_fixture(File.join('configuration', file)),
|
||||
:env => env
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user