Commit d98185b34824e4f53fe8bd6423772f660a7ca8ec
1 parent
4b01e9da
Exists in
master
and in
29 other branches
All files related to plugins should not be on the Noosfero core
(ActionItem2866)
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
features/step_definitions/sub_organizations_block_steps.rb
... | ... | @@ -1,6 +0,0 @@ |
1 | -Given /^"([^\"]*)" is a sub organization of "([^\"]*)"$/ do |child, parent| | |
2 | - child = Organization.find_by_name(child) || Organization[child] | |
3 | - parent = Organization.find_by_name(parent) || Organization[parent] | |
4 | - | |
5 | - SubOrganizationsPlugin::Relation.add_children(parent, child) | |
6 | -end |
plugins/sub_organizations/features/step_definitions/sub_organizations_block_steps.rb
0 → 100644
... | ... | @@ -0,0 +1,6 @@ |
1 | +Given /^"([^\"]*)" is a sub organization of "([^\"]*)"$/ do |child, parent| | |
2 | + child = Organization.find_by_name(child) || Organization[child] | |
3 | + parent = Organization.find_by_name(parent) || Organization[parent] | |
4 | + | |
5 | + SubOrganizationsPlugin::Relation.add_children(parent, child) | |
6 | +end | ... | ... |