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