mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 03:17:41 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user