Sha256: 6d29552abaf2d9d2d0cf8edf059a2bb6be46777b5f9335cecc2d51e148be35eb
Contents?: true
Size: 542 Bytes
Versions: 58
Compression:
Stored size: 542 Bytes
Contents
require "spec_helper" describe "Rendering Attachments" do let(:release) { Brief.testcase.releases.first } let(:doc) { release.document } it "detects attachments" do expect(doc).to be_has_attachments end it "makes attachments content available" do expect(doc.render_attachments).not_to be_empty end it "optionally makes attachments available in the model serializer" do expect(release.as_json()).not_to have_key(:attachments) expect(release.as_json(attachments: true)[:attachments]).not_to be_empty end end
Version data entries
58 entries across 58 versions & 1 rubygems