Sha256: bbb86731eb8a1684370d8eed2f7bd6cac7259b2e23a94c201b234f068b28d57a
Contents?: true
Size: 750 Bytes
Versions: 9
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true require "spec_helper" shared_examples_for "has attachments" do context "when it has attachments" do let!(:document) do Decidim::AttachmentUploader.enable_processing = true create(:attachment, :with_pdf, attached_to: attached_to) end let!(:image) do Decidim::AttachmentUploader.enable_processing = true create(:attachment, attached_to: attached_to) end before do visit current_path end it "shows them" do within "div.wrapper .documents" do expect(page).to have_content(/#{translated(document.title, locale: :en)}/i) end within "div.wrapper .images" do expect(page).to have_css("img.thumbnail") end end end end
Version data entries
9 entries across 9 versions & 1 rubygems