mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
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
|
def bark
|
||||||
super + ", GROWL"
|
super + ", GROWL"
|
||||||
end
|
end
|
||||||
|
|
||||||
def growl
|
|
||||||
super.bark + ", GROWL"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_subclasses_can_invoke_parent_behavior_via_super
|
def test_subclasses_can_invoke_parent_behavior_via_super
|
||||||
@@ -71,11 +67,6 @@ class AboutInheritance < EdgeCase::Koan
|
|||||||
assert_equal __, ralph.bark
|
assert_equal __, ralph.bark
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_super_does_not_work_cross_method
|
|
||||||
ralph = BullDog.new("Ralph")
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
class GreatDane < Dog
|
class GreatDane < Dog
|
||||||
|
|||||||
Reference in New Issue
Block a user