Sha256: e4ddc59f982b4ce042fe311b31fb1e93473a2b1e198fec4acb141838dbcdbd8a
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
require "spec_helper" describe Onebox::Engine::CollegeHumorOnebox do let(:link) { "http://collegehumor.com" } before do fake(link, response("collegehumor.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("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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.0.1 | spec/lib/onebox/engine/college_humor_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/college_humor_spec.rb |