Sha256: ae031663715bb068658275dc99b37e7b5358bfb94bf0e1b132778c9da85000ac
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
require 'spec_helper' describe Schematic::Serializers::Xsd do describe "schematic#ignore keyword" do with_model :some_model do table :id => false do |t| t.string :title end model do self.primary_key = :title schematic do ignore :title end end end it "should exclude the methods" do xsd = generate_xsd_for_model(SomeModel) do end expect(sanitize_xml(SomeModel.to_xsd)).to eq(xsd) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schematic-0.7.1 | spec/schematic/serializers/xsd_xsd_ignore_methods_spec.rb |
schematic-0.7.0 | spec/schematic/serializers/xsd_xsd_ignore_methods_spec.rb |