mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
git-svn-id: https://svn.redmine.org/redmine/trunk@22515 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,9 +23,8 @@ class Redmine::PluginLoaderTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
clear_public
|
||||
|
||||
# Change plugin directory for testing to default in config/environments/tesr.rb.
|
||||
# plugins/foo => test/fixtures/plugins/foo
|
||||
@klass = Redmine::PluginLoader
|
||||
@klass.directory = Rails.root.join('test/fixtures/plugins')
|
||||
@klass.public_directory = Rails.root.join('tmp/public/plugin_assets')
|
||||
@klass.load
|
||||
end
|
||||
@@ -56,10 +55,6 @@ class Redmine::PluginLoaderTest < ActiveSupport::TestCase
|
||||
assert File.exist?("#{@klass.public_directory}/foo_plugin/stylesheets/foo.css")
|
||||
end
|
||||
|
||||
def test_autoload
|
||||
assert_equal true, Object.const_defined?(:Foo)
|
||||
end
|
||||
|
||||
def clear_public
|
||||
FileUtils.rm_rf 'tmp/public'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user