# frozen_string_literal: true require 'asciidoctor/foodogsquared/converters/html5-extended' describe Asciidoctor::Foodogsquared::Converters::HTML5Modified do it 'should have a video block with multiple ' do input = <<~INPUT video::hello.mp4[sources="hello.mp4,hello.webm"] INPUT expected = <<~HTML
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have a video block with a bunch of attributes' do input = <<~INPUT video::hello.mp4[opts="autoplay,loop", preload="metadata"] INPUT expected = <<~HTML
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have a video block with multiple and a caption' do input = <<~INPUT .Making up stuff right now video::./hello.mp4[sources="hello.mp4,hello.webm"] INPUT expected = <<~HTML
Making up stuff right now
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have a video block with a caption, ID, and classes' do input = <<~INPUT [#video-sample.reverse] .Making up stuff right now video::./hello.mp4[sources="hello.mp4,hello.webm"] INPUT expected = <<~HTML
Making up stuff right now
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end end