require "spec_helper"
describe BrDanfe::DanfeLib::XML do
subject { BrDanfe::DanfeLib::XML.new(xml_as_string) }
describe "#version_310?" do
describe "when xml's version is 3.10" do
let(:xml_as_string) do
<<-eos
eos
end
it "is true" do
expect(subject.version_310?).to be_truthy
end
end
describe "when xml's version isn't 3.10" do
let(:xml_as_string) do
<<-eos
eos
end
it "is false" do
expect(subject.version_310?).to be_falsey
end
end
end
end