Sha256: 7636ec867b305b2e58b7cad577e812cbf058bd0fc06f9aca3499c3d832d0f844
Contents?: true
Size: 467 Bytes
Versions: 19
Compression:
Stored size: 467 Bytes
Contents
require "spec_helper" describe Schematic::Serializers::Xsd do describe ".xsd_ignore_methods" do with_model :some_model do table :id => false do |t| t.string :title end model do def self.xsd_ignore_methods [:title] end end end it "should exclude the methods" do xsd = generate_xsd_for_model(SomeModel) do end sanitize_xml(SomeModel.to_xsd).should eq(xsd) end end end
Version data entries
19 entries across 19 versions & 1 rubygems