Sha256: 94f443e4f8d5aed61e5b5374aea11719c4bbb8f78d1c350d33ef444045760ed6

Contents?: true

Size: 443 Bytes

Versions: 39

Compression:

Stored size: 443 Bytes

Contents

require "spec_helper"

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

  include_context "engines"
  it_behaves_like "an engine"

  describe "#to_html" do
    it "includes article image" do
      expect(html).to include("Billy_Jack_poster.jpg")
    end

    it "includes summary" do
      expect(html).to include("Billy Jack is a 1971 action/drama")
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
onebox-1.4.9 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.8 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.7 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.5 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.4 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.3 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.2 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.1 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.4.0 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.9 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.8 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.7 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.6 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.5 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.4 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.3 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.2 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.1 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.3.0 spec/lib/onebox/engine/wikipedia_onebox_spec.rb