Sha256: 737e930dab2077e96cd6491a79790d72b623bfd7d2d7c660583ea1724a417532
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
# encoding: UTF-8 require File.expand_path('../../test_helper', __FILE__) class TypeHierarchyTest < MiniTest::Spec def setup @site = setup_site end def teardown teardown_site end context "Content" do should "have an empty supertype" do ::Content.supertype.should be_nil ::Content.supertype?.should be_false end end context "Schema classes" do setup do class SchemaClass < ::Piece end end teardown do self.class.send :remove_const, :SchemaClass end should "have a reference to their super type" do SchemaClass.supertype.should == ::Piece end should "know what file they were defined in" do SchemaClass.__source_file.should == File.expand_path(__FILE__) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spontaneous-0.2.0.beta1 | test/unit/test_type_hierarchy.rb |