Sha256: 1f134811db4d7e32b1d9032da917dc323bced41871d18abda2147d1c573e4bd0

Contents?: true

Size: 545 Bytes

Versions: 4

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 iframe as the placeholder' do
    expect(Onebox.preview('http://v.youku.com/v_show/id_XNjM3MzAxNzc2.html')
        .placeholder_html).to match(/iframe/)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onebox-1.5.35 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.34 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.33 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.5.32 spec/lib/onebox/engine/youku_onebox_spec.rb