Sha256: a172c96e9fc9fa5168dfceb439cd24a56bf0b6a84a0dd4f9a3861d02a4ca3d66
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
require "spec_helper" describe Onebox::Engine::QikOnebox do before(:all) do @link = "http://qik.com/video/13430626" 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 the video title" do expect(html).to include("20910") end it "returns the video author" do expect(html).to include("mitesh patel") end it "returns the video uploader photo" do expect(html).to include("me_large.jpg") end it "returns the video URL" do expect(html).to include(link) end it "returns the video embed code" do pending expect(html).to include("clsid:d27cdb6e-ae6d-11cf-96b8-444553540000") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/qik_onebox_spec.rb |