test added for changes at documentable's view

This commit is contained in:
Vicente Mendoza
2018-01-23 15:29:55 +01:00
parent c96e8d1203
commit 410caced3e
7 changed files with 20 additions and 7 deletions

View File

@@ -52,6 +52,13 @@ shared_examples "nested documentable" do |login_as_name, documentable_factory_na
click_link "Add new document"
end
within "#nested-documents" do
find_all(".document input[type=file]", visible: true).each do |document|
attach_file(document, "spec/fixtures/files/empty.pdf", make_visible: true)
end
end
expect(page).to have_content I18n.t 'documents.buttons.destroy_document'
expect(page).to have_css ".max-documents-notice", visible: true
end