Cleanup of "cross method" test on the Bulldog, by removing the unfinished test and also Bulldog.growl method, which becomes obsolete.
This commit is contained in:
@@ -60,10 +60,6 @@ class AboutInheritance < EdgeCase::Koan
|
||||
def bark
|
||||
super + ", GROWL"
|
||||
end
|
||||
|
||||
def growl
|
||||
super.bark + ", GROWL"
|
||||
end
|
||||
end
|
||||
|
||||
def test_subclasses_can_invoke_parent_behavior_via_super
|
||||
@@ -71,11 +67,6 @@ class AboutInheritance < EdgeCase::Koan
|
||||
assert_equal __, ralph.bark
|
||||
end
|
||||
|
||||
def test_super_does_not_work_cross_method
|
||||
ralph = BullDog.new("Ralph")
|
||||
|
||||
end
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
class GreatDane < Dog
|
||||
|
||||
Reference in New Issue
Block a user