Remove no longer valid scenarios: image&doc removal by admin

This commit is contained in:
Bertocq
2018-01-24 21:50:13 +01:00
parent 43c8506f84
commit 62d7d08a10
2 changed files with 0 additions and 18 deletions

View File

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

View File

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