Sha256: d257fed4f9c539d024105016eb4d1aeeb47c6ca594ae75f141f9cbee6f14283c
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
require "lib/roxml" class RoxmlMockObject include ROXML end class Book < RoxmlMockObject xml_attribute :isbn xml_text :title xml_text :description, nil, ROXML::TAG_CDATA xml_text :author end class Author < RoxmlMockObject xml_attribute :role xml_text :text, nil, ROXML::TEXT_CONTENT end class BookWithAuthorTextAttribute < RoxmlMockObject xml_attribute :isbn xml_text :title xml_text :description, nil, ROXML::TAG_CDATA xml_object :author, Author end class Contributor < RoxmlMockObject xml_attribute :role xml_text :name end class BookWithContributions < RoxmlMockObject xml_name :book xml_attribute :isbn xml_text :title xml_text :description xml_object :contributions, Contributor, ROXML::TAG_ARRAY, "contributions" end class BookWithContributors < RoxmlMockObject xml_name :book xml_attribute :isbn xml_text :title xml_text :description xml_object :contributors, Contributor, ROXML::TAG_ARRAY end class Publisher < RoxmlMockObject xml_text :name end class BookWithPublisher < RoxmlMockObject xml_name :book xml_attribute :isbn xml_text :title xml_text :description xml_object :publisher, Publisher end class BookPair < RoxmlMockObject xml_attribute :isbn xml_text :title xml_text :description xml_text :author xml_object :book, Book end class Library < RoxmlMockObject xml_text :name xml_object :books, BookWithContributions, ROXML::TAG_ARRAY end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roxml-1.1 | test/mocks/mocks.rb |