Commit dbed9110 authored by maeda's avatar maeda

"rake db:fixtures:load" does not work (#30811).

Patch by Takenori TAKAKI.


git-svn-id: https://svn.redmine.org/redmine/trunk@17889 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b4805bc8
...@@ -23,26 +23,26 @@ class Redmine::ConfigurationTest < ActiveSupport::TestCase ...@@ -23,26 +23,26 @@ class Redmine::ConfigurationTest < ActiveSupport::TestCase
end end
def test_empty def test_empty
assert_kind_of Hash, load_conf('empty.yml', 'test') assert_kind_of Hash, load_conf('empty.yml.example', 'test')
end end
def test_default 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'] assert_equal 'foo', @conf['somesetting']
end end
def test_no_default 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'] assert_equal 'foo', @conf['somesetting']
end end
def test_overrides 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'] assert_equal 'bar', @conf['somesetting']
end end
def test_with def test_with
load_conf('default.yml', 'test') load_conf('default.yml.example', 'test')
assert_equal 'foo', @conf['somesetting'] assert_equal 'foo', @conf['somesetting']
@conf.with 'somesetting' => 'bar' do @conf.with 'somesetting' => 'bar' do
assert_equal 'bar', @conf['somesetting'] assert_equal 'bar', @conf['somesetting']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment