Compare strings instead of symbols for constants, similar to method names.

This commit is contained in:
oflannabhra
2012-01-02 22:33:46 -05:00
parent e76be64f9d
commit b44b5f8bb2

View File

@@ -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