Sha256: 6403327b7d2368122131fcc98464822a8f73cd94c41be1fc053f78ca683e43ee

Contents?: true

Size: 545 Bytes

Versions: 14

Compression:

Stored size: 545 Bytes

Contents

require 'spec_helper'

describe Onebox::Engine::YoukuOnebox do
  before do
    FakeWeb.register_uri(:get, 'http://v.youku.com/v_show/id_XNjM3MzAxNzc2.html', body: response('youku'), content_type: 'text/html')
    FakeWeb.register_uri(:get, 'http://v.youku.com/player/getPlayList/VideoIDS/XNjM3MzAxNzc2', body: response('youku-meta'), content_type: 'text/html')
  end

  it 'returns an image as the placeholder' do
    expect(Onebox.preview('http://v.youku.com/v_show/id_XNjM3MzAxNzc2.html')
        .placeholder_html).to match(/<img/)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
onebox-1.5.31 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.30 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.29 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.28 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.27 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.26 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.25 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.24 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.23 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.22 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.21 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.20 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.19 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.18 spec/lib/onebox/engine/youku_onebox_spec.rb