Permalink
Browse files

Resolving the final failing test.

  • Loading branch information...
1 parent accf18a commit 7c3d688156073bb7b240a110cc5fc9ceb98f3e2b @jcoglan jcoglan committed Aug 12, 2008
Showing with 2 additions and 4 deletions.
  1. +2 −4 test/test.html
View
@@ -946,14 +946,12 @@
assertEqual(4*6, Koala.count() + Bear.count() + Dog.count() + Pitbull.count());
}},
- testClassMethodInheritanceSkipsGenerations: function() { with(this) {
+ testClassMethodsMustBeDeclaredWithExtend: function() { with(this) {
Dog.eatFood = function(food) { return 'Dogs eat ' + food; };
assertEqual('Dogs eat biscuits', Dog.eatFood('biscuits'));
Animal.extend({eatFood: function(food) { return 'Animals eat ' + food; }});
assertEqual('Animals eat people', Pitbull.eatFood('people'));
- assertEqual('Dogs eat biscuits', Dog.eatFood('biscuits'));
- Pitbull.extend({eatFood: function() { return this.callSuper(); }});
- assertEqual('Dogs eat people', Pitbull.eatFood('people'));
+ assertEqual('Animals eat biscuits', Dog.eatFood('biscuits'));
}},
testModularInheritance: function() { with(this) {

0 comments on commit 7c3d688

Please sign in to comment.