Sha256: 0e6863dd7f12b53c36bd513f85de6142953d08cba09992c5f0ee03d0ee7c87b0

Contents?: true

Size: 505 Bytes

Versions: 13

Compression:

Stored size: 505 Bytes

Contents

$: << 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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rice-4.5.0 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.3.3 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.3.2 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.3.1 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.3.0 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.2.1 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.2.0 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.1.0 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.0.4 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.0.3 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.0.2 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.0.1 test/ruby/test_multiple_extensions_with_inheritance.rb
rice-4.0.0 test/ruby/test_multiple_extensions_with_inheritance.rb