Sha256: 370d4adde7d918706f594aa3bdd7ca0d60ba6fe0a116b4324952ff75fc1f62c8
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
require "spec_helper" describe Onebox::Engine::BliptvOnebox do before(:all) do @link = "http://blip.tv" 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("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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/bliptv_onebox_spec.rb |