require 'helper' class Leap::QuorumTest < Test::Unit::TestCase context 'to_xml' do should 'serialize to xml' do quorum = Leap::Quorum.new( 'roll call', { :needs => :count, :complies => :rules_of_endearment, :appreciates => [:adulation, :confirmation] }, Proc.new {}) output = '' quorum.to_xml(:target => output) assert_equal(< roll call count adulation confirmation rules_of_endearment XML end end end