0
我正在RubyKoans.com上工作,並被卡住在about_symbols.rb
。紅寶石:卡在公仔上
這是測試:我想我應該把括號東西assert_raise()
之後,但我不知道:
def test_symbols_cannot_be_concatenated
# Exceptions will be pondered further father down the path
assert_raise(___) do
:cats + :dogs
end
end
這是在終端提示:
The answers you seek...
[FillMeInError] exception expected, not Class: <NoMethodError> Message: <"undefined method `+' for :cats:Symbol"> ---Backtrace--- /Users/mm/Sites/koans/about_symbols.rb:89:in `block in test_symbols_cannot_be_concatenated' ---------------