Sha256: fe550e49b333f8ad780e2fe5ac3457c84e55d46fb629835abd32ba6b045a6b4d

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

require "spec_helper"

describe ReverseAdoc::Converters::Audio do
  let(:converter) { ReverseAdoc::Converters::Audio.new }

  it "converts audio with no attributes" do
    node = node_for("<audio src='example.mp3'/>")
    expect(converter.convert(node)).to include "audio::example.mp3[]"
  end

  it "converts audio with full set of attributes" do
    node = node_for("<audio id='A' src='example.mp3' loop='loop'/>")
    expect(converter.convert(node)).to include "[[A]]\naudio::example.mp3[options=\"loop\"]"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reverse_adoc-1.0.1 spec/lib/reverse_adoc/converters/audio_spec.rb
reverse_adoc-1.0.0 spec/lib/reverse_adoc/converters/audio_spec.rb