Sha256: 3165b622e5d8e7e4ba4e631976bdd359dbaa505966b2c25cc0853402ea65bb9b

Contents?: true

Size: 598 Bytes

Versions: 2

Compression:

Stored size: 598 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::ClikThroughOnebox do
  let(:link) { "http://www.clickthough.com"}
  before do
    fake(link, response("clikthrough.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("Keri Hilson - Knock You Down")
    end

    it "returns video description" do
      expect(html).to include("Keri Hilson gets taken down by love once again")
    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/clikthrough_spec.rb
onebox-1.0.0 spec/lib/onebox/engine/clikthrough_spec.rb