diff --git a/spec/shared/features/documentable.rb b/spec/shared/features/documentable.rb index 424b09b60..b76a208f7 100644 --- a/spec/shared/features/documentable.rb +++ b/spec/shared/features/documentable.rb @@ -60,15 +60,6 @@ shared_examples "documentable" do |documentable_factory_name, documentable_path, end end - scenario "Should be able when any administrator logged in" do - login_as administrator - visit send(documentable_path, arguments) - - within "#tab-documents" do - expect(page).to have_link("Destroy") - end - end - end end diff --git a/spec/shared/features/imageable.rb b/spec/shared/features/imageable.rb index b9f5bf7d8..1a2f269da 100644 --- a/spec/shared/features/imageable.rb +++ b/spec/shared/features/imageable.rb @@ -44,15 +44,6 @@ shared_examples "imageable" do |imageable_factory_name, imageable_path, imageabl create(:image, imageable: imageable, user: imageable.author) end - scenario "Should show success notice after successfull deletion by an admin" do - login_as administrator - - visit send(imageable_path, imageable_arguments) - click_on "Remove image" - - expect(page).to have_content "Image was deleted successfully." - end - scenario "Should show success notice after successfull deletion" do login_as imageable.author