Sha256: b291567f964a93709e8473341badf6a5996f1a96e6d0d0c353196637ceca465e
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
require "spec_helper" describe Onebox::Engine::FunnyOrDieOnebox do let(:link) { "http://funnyordie.com" } before do fake(link, response("funnyordie.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("The Landlord") end it "returns video photo" do expect(html).to include("c480x270_18.jpg") end it "returns video description" do expect(html).to include("Will Ferrell meets his landlord.") end it "returns video URL" do expect(html).to include("http://www.funnyordie.com/videos/74/the-landlord-from-will-ferrell-and-adam-ghost-panther-mckay") 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/funny_or_die_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/funny_or_die_spec.rb |