# frozen_string_literal: true require "spec_helpers" describe Wayfarer::Parsing::XML, ".parse" do let(:xml) { "Foobar" } subject(:doc) { Wayfarer::Parsing::XML.parse(xml, variant) } context "HTML" do let(:variant) { :html } specify do expect(doc).to be_a(Nokogiri::HTML::Document) end end context "XML" do let(:variant) { :xml } specify do expect(doc).to be_a(Nokogiri::XML::Document) end end end