spec/lib/onebox/engine/youku_onebox_spec.rb in onebox-1.5.17 vs spec/lib/onebox/engine/youku_onebox_spec.rb in onebox-1.5.18

- old
+ new

@@ -5,9 +5,9 @@ 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 - Onebox.preview('http://v.youku.com/v_show/id_XNjM3MzAxNzc2.html') - .placeholder_html.should match(/<img/) + expect(Onebox.preview('http://v.youku.com/v_show/id_XNjM3MzAxNzc2.html') + .placeholder_html).to match(/<img/) end end