Ruby - Testing with RSpec and Minitest
How can you write a Minitest assertion to check that an array includes a specific element?
assert_includes checks if an element is in a collection.assert array.include?(element) or assert_equal true, array.include?(element) also works.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions