diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-08-25 01:22:18 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-08-25 01:22:18 -0600 |
| commit | 39bf4465af2f3faf5b1499fb0b8e5f193e287c47 (patch) | |
| tree | 7e2724ab444220103c414e92f3c5d9bf3d75df05 | |
| parent | 7d5bd9099ad4939bc32686c49e6d875c2212e927 (diff) | |
add test for youtube video in video macro
| -rw-r--r-- | test/blocks_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/blocks_test.rb b/test/blocks_test.rb index 303acfab..69f2e8c3 100644 --- a/test/blocks_test.rb +++ b/test/blocks_test.rb @@ -1383,6 +1383,18 @@ video::67480300[vimeo, 400, 300, start=60, options=autoplay] assert_css 'iframe[height="300"]', output, 1 end + test 'video macro should output custom HTML with iframe for youtube service' do + input = <<-EOS +video::rPQoq7ThGAU[youtube, 640, 360, start=60, options=autoplay] + EOS + output = render_embedded_string input + assert_css 'video', output, 0 + assert_css 'iframe', output, 1 + assert_css 'iframe[src="//www.youtube.com/embed/rPQoq7ThGAU?rel=0&start=60&autoplay=1"]', output, 1 + assert_css 'iframe[width="640"]', output, 1 + assert_css 'iframe[height="360"]', output, 1 + end + test 'should detect and render audio macro' do input = <<-EOS audio::podcast.mp3[] |
