Sha256: 4fe0d3c6342ea7cebcdb281815a3b0e8029dc87058799883d6b7720f2d9b2fe8

Contents?: true

Size: 637 Bytes

Versions: 16

Compression:

Stored size: 637 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::SlidesOnebox do

  let(:link) { "http://slides.com/drksephy/ecmascript-2015" }
  let(:html) { described_class.new(link).to_html }

  before do
    fake(link, response("slides"))
  end

  describe "#placeholder_html" do
    it "returns an image as the placeholder" do
      expect(Onebox.preview(link)
      .placeholder_html).to include("//s3.amazonaws.com/media-p.slid.es/thumbnails/secure/cff7c3/decks.jpg")
    end
  end

  describe "#to_html" do
    it "returns iframe embed" do
      expect(html).to include(URI(link).path)
        expect(html).to include("iframe")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
onebox-1.5.50 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.49 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.48 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.47 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.45 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.44 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.43 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.42 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.41 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.40 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.39 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.38 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.37 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.36 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.35 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.5.34 spec/lib/onebox/engine/slides_onebox_spec.rb