Sha256: 08051076bbcecc5c4bae0573aa0e3e9a162091bb4f33ebef01df61a6f35e162d

Contents?: true

Size: 628 Bytes

Versions: 65

Compression:

Stored size: 628 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

65 entries across 65 versions & 1 rubygems

Version Path
onebox-1.8.39 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.38 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.36 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.35 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.34 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.33 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.32 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.31 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.30 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.29 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.28 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.27 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.26 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.25 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.24 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.23 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.22 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.21 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.20 spec/lib/onebox/engine/slides_onebox_spec.rb
onebox-1.8.19 spec/lib/onebox/engine/slides_onebox_spec.rb