Sha256: 6b83d0dd4f750637a77c62351ad72c0517e1aa690999b3456dc1f7cc446d5d07
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
require 'test_helper' class Engine attr_reader :power def initialize(power) @power = power end end class Car attr_reader :engine delegate :power, to: :engine def initialize @engine = Engine.new(123) end end class TestModule < Minitest::Test def test_delegate car = Car.new assert_equal 123, car.power end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subshift-0.0.2 | test/test_module.rb |
subshift-0.0.1.pre | test/test_module.rb |