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.5.21 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.20 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.19 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.18 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.17 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.16 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.14 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.13 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.12 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.11 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.10 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.9 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.8 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.7 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.6 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.5 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.3 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.2 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.1 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.5.0 spec/lib/onebox/engine/wikipedia_onebox_spec.rb