diff options
author | Go MAEDA <maeda@farend.jp> | 2021-12-08 01:23:51 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-12-08 01:23:51 +0000 |
commit | 1ae29debf4efbf5406221376bb062ff7d0efe310 (patch) | |
tree | cd3754afd484cf335ab9606f20621ef49f51ab54 /test | |
parent | 080a8d06684fb2b290d55bef2ed76d82d71a6d46 (diff) | |
download | redmine-1ae29debf4efbf5406221376bb062ff7d0efe310.tar.gz redmine-1ae29debf4efbf5406221376bb062ff7d0efe310.zip |
Fix redmine:plugins:assets rake task fails (#36287, #32938).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21300 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/plugin_loader_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/plugin_loader_test.rb b/test/unit/lib/redmine/plugin_loader_test.rb index 43d100521..2b103420e 100644 --- a/test/unit/lib/redmine/plugin_loader_test.rb +++ b/test/unit/lib/redmine/plugin_loader_test.rb @@ -41,6 +41,20 @@ class Redmine::PluginLoaderTest < ActiveSupport::TestCase assert File.exist?("#{@klass.public_directory}/foo_plugin/stylesheets/foo.css") end + def test_mirror_assets + Redmine::PluginLoader.mirror_assets + + assert File.exist?("#{@klass.public_directory}/foo_plugin") + assert File.exist?("#{@klass.public_directory}/foo_plugin/stylesheets/foo.css") + end + + def test_mirror_assets_with_plugin_name + Redmine::PluginLoader.mirror_assets('foo_plugin') + + assert File.exist?("#{@klass.public_directory}/foo_plugin") + assert File.exist?("#{@klass.public_directory}/foo_plugin/stylesheets/foo.css") + end + def clear_public FileUtils.rm_rf 'tmp/public' end |