Contributed by Alexander Meindl.
git-svn-id: http://svn.redmine.org/redmine/trunk@19813
e93f8b46-1217-0410-a6f0-
8f06a7374b81
<%= title [l(:label_plugins), {:controller => 'admin', :action => 'plugins'}], @plugin.name %>
-<div id="settings">
+<div id="settings" class="plugin plugin-<%= @plugin.id %>">
<%= form_tag({:action => 'plugin'}) do %>
<div class="box tabular settings">
<%= render :partial => @partial, :locals => {:settings => @settings}%>
get :plugin, :params => {:id => 'foo'}
assert_response :success
- assert_select 'form[action="/settings/plugin/foo"]' do
- assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
+ assert_select '#settings.plugin.plugin-foo' do
+ assert_select 'form[action="/settings/plugin/foo"]' do
+ assert_select 'input[name=?][value=?]', 'settings[sample_setting]', 'Plugin setting value'
+ end
end
ensure
Redmine::Plugin.unregister(:foo)