Sha256: 8436f623f8f63b4fc527ac2bf39039a417c869b1a2a4e2f3879db63e306f7da9
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
require 'core_ext/forwardable' if RUBY_VERSION == '2.4.0' describe Forwardable do class Foo extend Forwardable def initialize @bar = :bar end def_delegator :@bar, :to_s, :qux end it 'expect delegation to work' do expect(Foo.new.qux).to eq 'bar' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
routemaster-drain-3.7.1 | spec/core_ext/forwardable_spec.rb |
routemaster-drain-3.7.0 | spec/core_ext/forwardable_spec.rb |