|
|
|
@ -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| |
|
|
|
|