$: << File.join(__dir__, '..', '..', 'sample') # Load a library that uses inheritance require 'inheritance/animals' # Then load a different library require 'enum/sample_enum' require 'minitest' require 'minitest/autorun' class MultipleExtensionTest < Minitest::Test def test_multiple_extensions_with_inheritance # And make sure we can call methods in the base class on a derived # instance dog = Dog.new assert_equal dog.name, "Dog" assert_equal dog.speak, "Woof woof" end end