|
|
|
@ -99,20 +99,6 @@ Then /^the project "([^"]*)" is( not)? public$/ do |project_name, negation| |
|
|
|
|
p.update_attribute(:is_public, !negation) |
|
|
|
|
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") |
|
|
|
|
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| |
|
|
|
|
p = Project.find_by(name: project) |
|
|
|
|
|
|
|
|
|