-
-
Save rajonrails/c2b86d72f1a9ae27afec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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