Sha256: 51b1202ce2e942f0482c6c184165118991c6ab6f0d40642090c757b11fdf9658
Contents?: true
Size: 517 Bytes
Versions: 5
Compression:
Stored size: 517 Bytes
Contents
covers 'facets/module/alias_method_chain' test_case Module do method :alias_method_chain do test do x = Module.new do def self.included(base) base.module_eval { alias_method_chain :foo, :feature } end def foo_with_feature foo_without_feature + '!' end end y = Class.new do def foo "FOO" end include x end iy = y.new iy.foo.assert == "FOO!" end end end
Version data entries
5 entries across 5 versions & 2 rubygems