Sha256: ca788dd6a92be1340cfed0186296c237d8a759843b0539d97383a45fbd823f5e

Contents?: true

Size: 543 Bytes

Versions: 79

Compression:

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

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
onebox-1.8.18 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.17 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.16 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.15 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.14 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.13 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.12 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.11 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.10 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.9 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.8 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.7 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.6 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.5 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.4 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.3 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.2 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.1 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.8.0 spec/lib/onebox/engine/youku_onebox_spec.rb
onebox-1.7.9 spec/lib/onebox/engine/youku_onebox_spec.rb