mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
@@ -67,7 +67,7 @@ class AboutConstants < EdgeCase::Koan
|
|||||||
end
|
end
|
||||||
|
|
||||||
# QUESTION: Which has precedence: The constant in the lexical scope,
|
# QUESTION: Which has precedence: The constant in the lexical scope,
|
||||||
# or the constant from the inheritance heirarachy?
|
# or the constant from the inheritance hierarchy?
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class AboutModules < EdgeCase::Koan
|
|||||||
assert_equal __, fido.bark
|
assert_equal __, fido.bark
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_module_methods_are_also_availble_in_the_object
|
def test_module_methods_are_also_available_in_the_object
|
||||||
fido = Dog.new
|
fido = Dog.new
|
||||||
assert_nothing_raised(Exception) do
|
assert_nothing_raised(Exception) do
|
||||||
fido.set_name("Rover")
|
fido.set_name("Rover")
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class AboutSymbols < EdgeCase::Koan
|
|||||||
# interesting string operations are available on symbols.
|
# interesting string operations are available on symbols.
|
||||||
|
|
||||||
def test_symbols_cannot_be_concatenated
|
def test_symbols_cannot_be_concatenated
|
||||||
# Exceptions will be pondered further father down the path
|
# Exceptions will be pondered further farther down the path
|
||||||
assert_raise(___) do
|
assert_raise(___) do
|
||||||
:cats + :dogs
|
:cats + :dogs
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user