Sha256: cd9747e84ef67c33df0063f1ad2000523b2ffb47a681193b040e6e738faf106e
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
require "spec_helper" describe Onebox::Engine::NFBOnebox do let(:link) { "http://nfb.ca" } before do fake(link, response("nfb.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("Overdose") end it "returns video description" do expect(html).to include("With school, tennis lessons, swimming lessons, art classes,") end it "returns video URL" do expect(html).to include("http://www.nfb.ca/film/overdose_en/") end it "returns the video embed code" do pending expect(html).to include("") 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/nfb_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/nfb_spec.rb |