Sha256: 78543e588797c3c7a9766900cba24c207f467e89a63a5ddd779e4b65bea57d5b
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
require "spec_helper" describe Onebox::Engine::FlickrOnebox do let(:link) { "http://flickr.com" } before do fake(link, response("flickr.response")) end it_behaves_like "engines" describe "#to_html" do let(:html) { described_class.new(link).to_html } it "returns photo title" do expect(html).to include("Los Angeles View 2011") end it "returns photo" do expect(html).to include("6038315155_2875860c4b_z.jpg") end it "returns photo description" do expect(html).to include("The view from the Griffith Observatory, Los Angeles; July 2011") 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/flickr_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/flickr_spec.rb |