Sha256: b9934f10eecf410ad9f58212c59a3c1ed10ca98db10c1374ba500944734a658b
Contents?: true
Size: 708 Bytes
Versions: 2
Compression:
Stored size: 708 Bytes
Contents
require "spec_helper" describe Onebox::Engine::TedOnebox do let(:link) { "http://ted.com" } before do fake(link, response("ted.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("Eli Beer: The fastest ambulance? A motorcycle") end it "returns video photo" do expect(html).to include("aa8d0403aec3466d031e3e1c1605637d84d6a07d_389x292.jpg") end it "returns video description" do expect(html).to include("As a young EMT on a Jerusalem ambulance") 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/ted_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/ted_spec.rb |