Fix plugins test to use correct plugin name and directory (#31110).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18063 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-04-19 15:23:54 +00:00
parent 42532605db
commit 18a4f64547
3 changed files with 43 additions and 31 deletions

View File

@@ -121,8 +121,10 @@ class AdminControllerTest < Redmine::ControllerTest
description 'This is a test plugin'
version '0.0.1'
settings :default => {'sample_setting' => 'value', 'foo'=>'bar'}, :partial => 'foo/settings'
directory 'test/fixtures/plugins/foo_plugin'
end
Redmine::Plugin.register :bar do
Redmine::Plugin.register :other do
directory 'test/fixtures/plugins/other_plugin'
end
get :plugins
@@ -132,8 +134,8 @@ class AdminControllerTest < Redmine::ControllerTest
assert_select 'td span.name', :text => 'Foo plugin'
assert_select 'td.configure a[href="/settings/plugin/foo"]'
end
assert_select 'tr#plugin-bar' do
assert_select 'td span.name', :text => 'Bar'
assert_select 'tr#plugin-other' do
assert_select 'td span.name', :text => 'Other'
assert_select 'td.configure a', 0
end
end