summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-10 08:47:19 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-10 08:47:19 +0000
commitd496d8c4edd3ef5ba2c10ad2bbdd7350b09773b0 (patch)
treed29c70a6393b242215955ea0ed02d2a11e1b43ae /test
parent5fa84c0b4e0a04c9d212a0b2e2969cc72c4f7fe5 (diff)
downloadredmine-d496d8c4edd3ef5ba2c10ad2bbdd7350b09773b0.tar.gz
redmine-d496d8c4edd3ef5ba2c10ad2bbdd7350b09773b0.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/files/configuration/default.yml (renamed from test/fixtures/configuration/default.yml.example)0
-rw-r--r--test/fixtures/files/configuration/empty.yml (renamed from test/fixtures/configuration/empty.yml.example)0
-rw-r--r--test/fixtures/files/configuration/no_default.yml (renamed from test/fixtures/configuration/no_default.yml.example)0
-rw-r--r--test/fixtures/files/configuration/overrides.yml (renamed from test/fixtures/configuration/overrides.yml.example)0
-rw-r--r--test/unit/lib/redmine/configuration_test.rb12
5 files changed, 6 insertions, 6 deletions
diff --git a/test/fixtures/configuration/default.yml.example b/test/fixtures/files/configuration/default.yml
index 89a60f13a..89a60f13a 100644
--- a/test/fixtures/configuration/default.yml.example
+++ b/test/fixtures/files/configuration/default.yml
diff --git a/test/fixtures/configuration/empty.yml.example b/test/fixtures/files/configuration/empty.yml
index f280431c4..f280431c4 100644
--- a/test/fixtures/configuration/empty.yml.example
+++ b/test/fixtures/files/configuration/empty.yml
diff --git a/test/fixtures/configuration/no_default.yml.example b/test/fixtures/files/configuration/no_default.yml
index 161224a46..161224a46 100644
--- a/test/fixtures/configuration/no_default.yml.example
+++ b/test/fixtures/files/configuration/no_default.yml
diff --git a/test/fixtures/configuration/overrides.yml.example b/test/fixtures/files/configuration/overrides.yml
index d9be392ba..d9be392ba 100644
--- a/test/fixtures/configuration/overrides.yml.example
+++ b/test/fixtures/files/configuration/overrides.yml
diff --git a/test/unit/lib/redmine/configuration_test.rb b/test/unit/lib/redmine/configuration_test.rb
index b33de6e43..2647fb7b8 100644
--- a/test/unit/lib/redmine/configuration_test.rb
+++ b/test/unit/lib/redmine/configuration_test.rb
@@ -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