Sha256: 1d41c055738eaa638fc290ffa87fcabf0b555108035ef057c0957797a0f8b375

Contents?: true

Size: 688 Bytes

Versions: 109

Compression:

Stored size: 688 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::DoubanOnebox do
  before(:all) do
    @link = "http://movie.douban.com/review/1503949/"
  end
  include_context "engines"
  it_behaves_like "an engine"

  before do
    fake(link, response("douban.response"))
  end

  it "has douban title" do
    expect(html).to include("那个荡气回肠的长镜头 (巴黎最后的探戈 影评)")
  end

  it "has douban image" do
    expect(html).to include("http://img3.douban.com/mpic/s2557510.jpg")
  end

  it "has the douban description" do
    expect(html).to include("<p>那个荡气回肠的长镜头")
  end

  it "has the URL to the resource" do
    expect(html).to include(link)
  end
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
onebox-1.7.8 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.7 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.6 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.5 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.4 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.3 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.2 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.1 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.7.0 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.9 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.8 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.7 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.6 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.5 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.4 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.3 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.2 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.1 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.6.0 spec/lib/onebox/engine/douban_onebox_spec.rb
onebox-1.5.65 spec/lib/onebox/engine/douban_onebox_spec.rb