Add step to check that openproject plugin is not loaded

pull/3743/head
Stefan Botzenhart 9 years ago
parent 8a5a73e49a
commit dba38f2425
  1. 11
      features/step_definitions/general_steps.rb

@ -101,7 +101,16 @@ end
Given /^the plugin (.+) is loaded$/ do |plugin_name|
plugin_name = plugin_name.gsub("\"", '')
Redmine::Plugin.all.detect { |x| x.id == plugin_name.to_sym }.present? ? nil : pending("Plugin #{plugin_name} not loaded")
Redmine::Plugin.all.detect { |x|
x.id == plugin_name.to_sym
}.present? ? nil : pending("Plugin #{plugin_name} not loaded")
end
Given /^the plugin (.+) is not loaded$/ do |plugin_name|
plugin_name = plugin_name.gsub("\"", '')
Redmine::Plugin.all.detect { |x|
x.id == plugin_name.to_sym
}.present? ? pending("Plugin #{plugin_name} not loaded") : nil
end
Given /^(?:the )?[pP]roject "([^\"]*)" uses the following [mM]odules:$/ do |project, table|

Loading…
Cancel
Save