Sha256: fdfb13cd462545ba5f6285e5833c2744fbeb9635b636213e04fd98795c7351f7

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/module/alias_module_function.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/module/alias_module_function.rb'


  require 'test/unit'

  class TCModule < Test::Unit::TestCase

    module MockModule
      # for alias_module_method
      def x ; 33 ; end
      module_function :x
      alias_module_function :y, :x
    end

    def test_alias_module_function
      assert_equal( 33, MockModule.y )
      #assert_equal( 33, @m.send(:y) ) # use send b/c private
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/module/test_alias_module_function.rb