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