Sha256: a793918c34a2653cafe6b2d891f1d224348b183c952761ddd3f4c0f77ce92272

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::WikipediaOnebox do
  before(:all) do
    @link = "http://en.wikipedia.org/wiki/Kevin_Bacon"
  end

  include_context "engines"
  it_behaves_like "an engine"

  describe "#to_html" do
    it "includes article image" do
      expect(html).to include("225px-Kevin_Bacon_Comic-Con_2012.jpg")
    end

    it "includes summary" do
      expect(html).to include("Kevin Norwood Bacon (born July 8, 1958)")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
onebox-1.2.9 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.8 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.7 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.6 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.5 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.4 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.3 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.2 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.1 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.2.0 spec/lib/onebox/engine/wikipedia_onebox_spec.rb