Ruby - Testing with RSpec and Minitest
Which RSpec matcher would you use to check if a string starts with "Hello"?
start_with matcher checks if a string begins with the given substring.include checks if substring is anywhere, match uses regex, and eq checks exact equality. Only start_with fits the requirement.start_with for string prefix checks [OK]start_with to check string beginnings [OK]include instead of start_witheq which requires exact matchmatch with substring check15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions