Sha256: 09f06de275172834cdc2b3178f63c1356375c4c2cd72236f9b0c46f736b989b8

Contents?: true

Size: 815 Bytes

Versions: 2

Compression:

Stored size: 815 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::BliptvOnebox do
  let(:link) { "http://blip.tv" }
  before do
    fake(link, response("bliptv.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("SC2L Week 3 - Axiom vs Acer G6")
    end

    it "returns image" do
      expect(html).to include("Striderdoom-SC2LWeek3AxiomVsAcerG6178-416.jpg")
    end

    it "returns video description" do
      expect(html).to include("Acer and Axiom go head to head in week 3!")
    end

    it "returns video" do
      expect(html).to include("http://blip.tv/day9tv/sc2l-week-3-axiom-vs-acer-g6-6623829")
    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/bliptv_spec.rb
onebox-1.0.0 spec/lib/onebox/engine/bliptv_spec.rb