Sha256: ca75c0cd27f6eb486293eb22d14cadb471a044a77a55a693f4014f8c73449bbb

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/module/wrap_method.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/module/wrap_method.rb'


  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    def fixture_method; "A"; end

    wrap_method( :fixture_method ) { |old| old.call + "B" }

    def test_wrap_method
      assert_equal( "AB", fixture_method )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/module/test_wrap_method.rb