Sha256: c3a7e248974908b3129da5efcdfc86085ce24e07b25cad9f7c10666d2d808a00
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
require "spec_helper" describe Onebox::Engine::PdfOnebox do let(:link) { "https://acrobatusers.com/assets/uploads/public_downloads/2217/adobe-acrobat-xi-merge-pdf-files-tutorial-ue.pdf" } let(:html) { described_class.new(link).to_html } before do fake(link, response("pdf")) end describe "#to_html" do it "includes title" do expect(html).to include("Merge multiple files into one PDF file with Acrobat XI") end it "includes description" do expect(html).to include("Learn more about Adobe Acrobat XI: Merge multiple files into one PDF file with Acrobat XI") end it "includes author" do expect(html).to include("Adobe Systems, Inc.") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.8.0 | spec/lib/onebox/engine/pdf_onebox_spec.rb |