Skip to content

Instantly share code, notes, and snippets.

@rajonrails
Created March 12, 2012 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajonrails/c2b86d72f1a9ae27afec to your computer and use it in GitHub Desktop.
Save rajonrails/c2b86d72f1a9ae27afec to your computer and use it in GitHub Desktop.
def test_method_names_become_symbols
symbols_as_strings = Symbol.all_symbols.map { |x| x.to_s }
assert_equal , symbols_as_strings.include?("test_method_names_become_symbols")
end
# THINK ABOUT IT:
#
# Why do we convert the list of symbols to strings and then compare
# against the string value rather than against symbols?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment