Sha256: dd69dda36e74ba07ac7ba6c835bf01927df722738ba086d330ac4585f62e004f
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
require "spec_helper" describe Onebox::Engine::YfrogOnebox do let(:link) { "http://yfrog.com" } before do fake(link, response("yfrog.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("Celebrating @questlove Cook4Quest w/WyattCenac") end it "returns photo" do expect(html).to include("jjdob.jpg") end it "returns photo description" do expect(html).to include("Click on the photo to comment, share or view other great photos") 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/yfrog_spec.rb |
onebox-1.0.0 | spec/lib/onebox/engine/yfrog_spec.rb |