Sha256: 75545948579822b4e673a3d6c9bccaf52570962b865c2968518491ae990225fc

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::SlideshareOnebox do
  let(:link) { "http://slideshare.net" }
  before do
    fake(link, response("slideshare.response"))
  end

  it_behaves_like "engines"

  describe "#to_html" do
    let(:html) { described_class.new(link).to_html }

    it "returns presentation title" do
      expect(html).to include("12 Local Traditions That")
    end

    it "returns presentation description" do
      expect(html).to include("12 Local traditions that will make")
    end

    it "returns presentation image" do
      expect(html).to include("12localtraditions-130729070157-phpapp01-thumbnail-4")
    end

    it "returns URL" do
      expect(html).to include(link)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onebox-1.0.1 spec/lib/onebox/engine/slideshare_spec.rb
onebox-1.0.0 spec/lib/onebox/engine/slideshare_spec.rb