Sha256: 266a2a150c0767be21b3c5fc7b64316e8b05eec27ba66eb95374d31c2a51e80c
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require "spec_helper" describe Onebox::Engine::CollegeHumorOnebox do before(:all) do @link = "http://collegehumor.com" 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("Mitt Romney Style (Gangnam Style Parody)") end it "returns video image" do expect(html).to include("a9febe641d5beb264bbab0de49272e5a-mitt-romney-style-gangnam-style-parody.jpg") end it "returns video description" do expect(html).to include("Heyyy wealthy ladies!"Mitt Romney Style" is now available on iTunes") end it "returns video URL" do expect(html).to include("moogaloop.1.0.31.swf?clip_id=6830834&use_node_id=true&og=1&auto=true") 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/college_humor_onebox_spec.rb |