Sha256: 59517b70a221a6cf0abc195b0545ef3f234e2d0c7e9b52f7b2e24cb4820de3ba
Contents?: true
Size: 1.53 KB
Versions: 1
Compression:
Stored size: 1.53 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 class Person < RoxmlMockObject xml_text :name, nil, ROXML::TEXT_CONTENT end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roxml-1.2 | test/mocks/mocks.rb |