Sha256: c1feeac5843bc2e60c3952ecbe43d372e0f0e0a5bd7051d5604389b5b10a016a
Contents?: true
Size: 858 Bytes
Versions: 1
Compression:
Stored size: 858 Bytes
Contents
require "spec_helper" describe Onebox::Engine::TedOnebox do before(:all) do @link = "http://www.ted.com/talks/eli_beer_the_fastest_ambulance_a_motorcycle.html" fake(@link, response(described_class.template_name)) end before(:each) { Onebox.defaults.cache.clear } let(:link) { @link } it_behaves_like "an engine" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/ted_onebox_spec.rb |