Sha256: 372c6f1b73dde66b13f7638f06346509344449744bca2c12ef06312a5db0de71
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
require "spec_helper" describe Onebox::Engine::SlideshareOnebox do before(:all) do @link = "http://www.slideshare.net/TravelWorldPassport/12-local-traditions" 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 presentation title" do expect(html).to include("12 Local Traditions That") end it "returns presentation description" do expect(html).to include("12 Local traditions that will make") end it "returns presentation image" do expect(html).to include("12localtraditions-130729070157-phpapp01-thumbnail-4") 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/slideshare_onebox_spec.rb |