Sha256: e07375b1c7598e89f7d8bd0f8b99af027d7fe3a3ac620fc2fbc80d1f5276c541
Contents?: true
Size: 600 Bytes
Versions: 10
Compression:
Stored size: 600 Bytes
Contents
require "spec_helper" class BaseDummy include Xmlenc::Builder::Base tag "tag" end describe BaseDummy do describe "parse override" do it "sets the from_xml flag" do BaseDummy.parse("<tag></tag>", :single => true).from_xml?.should be_truthy end it "raises an error if the message cannot be parsed" do expect { BaseDummy.parse("invalid") }.to raise_error(Xmlenc::UnparseableMessage) end it "raises an error if the message is nil" do expect { BaseDummy.parse(nil) }.to raise_error(Xmlenc::UnparseableMessage) end end end
Version data entries
10 entries across 10 versions & 1 rubygems