From b44b5f8bb230b5fc84d99f9f6ff6b5f541ff0889 Mon Sep 17 00:00:00 2001 From: oflannabhra Date: Mon, 2 Jan 2012 22:33:46 -0500 Subject: [PATCH] Compare strings instead of symbols for constants, similar to method names. --- src/about_symbols.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/about_symbols.rb b/src/about_symbols.rb index 95cdffd..720ca8c 100644 --- a/src/about_symbols.rb +++ b/src/about_symbols.rb @@ -36,9 +36,9 @@ class AboutSymbols < EdgeCase::Koan in_ruby_version("mri") do RubyConstant = "What is the sound of one hand clapping?" def test_constants_become_symbols - all_symbols = Symbol.all_symbols + all_symbols_as_strings = Symbol.all_symbols.map { |x| x.to_s } - assert_equal __(true), all_symbols.include?(__(:RubyConstant)) + assert_equal __(true), all_symbols_as_strings.include?(__("RubyConstant")) end end