Remove no longer valid scenarios: image&doc removal by admin
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user