require "spec_helper" RSpec.describe IsoDoc do it "renders form" do input = <<~INPUT














HTML doc = <<~DOC #{WORD_HDR}

First name:
__________
Last name:
__________
Password:
__________
◎ Male
◎ Female
◎ Other
☐ I have a bike
☐ I have a car
☐ I have a boat
__________
Select a file: __________
Select a car: __________
[Click Me!] [BUTTON]

DOC expect(xmlpp(IsoDoc::HtmlConvert.new({}) .convert("test", input, true))).to be_equivalent_to xmlpp(html) expect(xmlpp(IsoDoc::WordConvert.new({}) .convert("test", input, true))).to be_equivalent_to xmlpp(doc) end end