Sha256: f73d8808485dd2adc083a43267ea933b1f4f491a3850696870cccc229cbc9f3d
Contents?: true
Size: 585 Bytes
Versions: 4
Compression:
Stored size: 585 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) require 'spec_helper' describe "youtube plugin" do DUMMY_YOUTUBE_VIDEO_ID = 1234567890 { 'Mozilla' => %|\t\t<iframe class="youtube-player" type="text/html" width="425" height="350" src="http://www.youtube.com/embed/#{DUMMY_YOUTUBE_VIDEO_ID}" frameborder="0">\n\t\t</iframe>\n| }.each do |k,v| it 'should render object tag in :user_agent' do plugin = fake_plugin(:youtube) cgi = CGIFake.new cgi.user_agent = k plugin.conf.cgi = cgi expect(plugin.youtube(DUMMY_YOUTUBE_VIDEO_ID)).to eq(v) end end end
Version data entries
4 entries across 3 versions & 2 rubygems