Ruby - Testing with RSpec and Minitest
You want to ensure your Ruby code handles empty strings correctly. Which test best applies Ruby's testing culture to check this?
def reverse_string(str) str.reverse end
def reverse_string(str) str.reverse end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions