Sha256: 0eaeb826c1331f6641cf56841212c6cbc06d6466fcfe1b5e09f272f023ffb6a9
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require "spec_helper" describe Onebox::Engine::VimeoOnebox do before(:all) do @link = "http://vimeo.com/70437049" 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 video title" do expect(html).to include("108 years of Herman Miller in 108 seconds") end it "returns video photo" do expect(html).to include("443673159_1280.jpg") end it "returns video description" do expect(html).to include("To mark the launch of a new website for Hermann Miller furniture") end it "returns video URL" do expect(html).to include("http://vimeo.com/moogaloop.swf?clip_id=70437049") 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/vimeo_onebox_spec.rb |