mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Delete enterprise group
This commit is contained in:
@@ -22,3 +22,4 @@
|
||||
%td= enterprise_group.enterprises.map(&:name).join ', '
|
||||
%td.actions
|
||||
= link_to '', main_app.edit_admin_enterprise_group_path(enterprise_group), class: 'edit-enterprise-group icon-edit no-text'
|
||||
= link_to_delete enterprise_group, no_text: true
|
||||
|
||||
@@ -73,6 +73,18 @@ feature %q{
|
||||
eg.enterprises.should == [e2]
|
||||
end
|
||||
|
||||
scenario "deleting an enterprise group", js: true do
|
||||
eg = create(:enterprise_group, name: 'EGEGEG')
|
||||
|
||||
click_link 'Configuration'
|
||||
click_link 'Enterprise Groups'
|
||||
first("a.delete-resource").click
|
||||
|
||||
page.should have_no_content 'EGEGEG'
|
||||
|
||||
EnterpriseGroup.all.should_not include eg
|
||||
end
|
||||
|
||||
|
||||
context "as an enterprise user" do
|
||||
xit "should show me only enterprises I manage when creating a new enterprise group"
|
||||
|
||||
Reference in New Issue
Block a user