Sha256: 1d7d5c0784e153f7620df7102028982cd8b7cd417a07f42c4873443190d298db
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require "spec_helper" describe Onebox::Engine::ImgurImageOnebox do before(:all) do @link = "http://imgur.com/gallery/twoDTCU" 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 the image title" do expect(html).to include("My dog likes to hug me") end it "returns the image" do expect(html).to include("twoDTCU.jpg") 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/imgur_image_onebox_spec.rb |