Sha256: 6c8df9d264c4ccf93ee0472a73728ce89b4569ef17dec68ee9ae6a93695f42b2
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require "spec_helper" describe Onebox::Engine::ClikThroughOnebox do before(:all) do @link = "http://www.clikthrough.com/theater/video/49/en-US" 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("Keri Hilson - Knock You Down") end it "returns video description" do expect(html).to include("Keri Hilson gets taken down by love once again") 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/clikthrough_onebox_spec.rb |