Sha256: cdde6fb43f6bfb0674c53b5e289c5417f2687129f984277001dc2cf8cbee0b09

Contents?: true

Size: 808 Bytes

Versions: 2

Compression:

Stored size: 808 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::ViddlerOnebox do
  let(:link) { "http://viddler.com" }
  before do
    fake(link, response("viddler.response"))
  end

  it_behaves_like "engines"

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

    it "returns video title" do
      expect(html).to include("Viddler Demo")
    end

    it "returns video image" do
      expect(html).to include("thumbnail_2_7164f749_v2.jpg")
    end

    it "returns video description" do
      expect(html).to include("Get familiar with your Viddler account.")
    end

    it "returns video URL" do
      expect(html).to include("http://www.viddler.com/player/7164f749")
    end

    it "returns video embed code"

    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/viddler_spec.rb
onebox-1.0.0 spec/lib/onebox/engine/viddler_spec.rb