Sha256: 52851bac8d608e3a2da97e2885e1b1aefd76a88dec8bbffa4ca40d719bfe5ec3

Contents?: true

Size: 535 Bytes

Versions: 93

Compression:

Stored size: 535 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::WikipediaOnebox do
  before(:all) do
    @link = "http://en.wikipedia.org/wiki/Billy_Jack"
    fake("https://en.wikipedia.org/wiki/Billy_Jack", response(described_class.onebox_name))
  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

93 entries across 93 versions & 1 rubygems

Version Path
onebox-1.8.39 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.38 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.36 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.35 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.34 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.33 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.32 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.31 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.30 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.29 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.28 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.27 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.26 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.25 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.24 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.23 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.22 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.21 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.20 spec/lib/onebox/engine/wikipedia_onebox_spec.rb
onebox-1.8.19 spec/lib/onebox/engine/wikipedia_onebox_spec.rb