Created
June 6, 2009 01:54
-
-
Save notahat/124629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should support single-table inheritance" do | |
Person.blueprint { name "Fred" } | |
Admin.blueprint { name "Bill" } | |
person = Person.make | |
person.should_not be_new_record | |
person.name.should == "Fred" | |
person.type.should == nil | |
admin = Admin.make | |
admin.should_not be_new_record | |
admin.name.should == "Bill" | |
admin.type.should == "Admin" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment