Sha256: 4aacf00d8b2059f10265272dedde0f68b93c9395c2ff76dd3124edaaa085e7ce
Contents?: true
Size: 728 Bytes
Versions: 7
Compression:
Stored size: 728 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 S::Content.supertype.should be_nil S::Content.supertype?.should be_false end end context "Schema classes" do setup do class SchemaClass < Spontaneous::Piece end end should "have a reference to their super type" do SchemaClass.supertype.should == Spontaneous::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
7 entries across 7 versions & 1 rubygems