Sha256: 571b74506340cb367766d9148c9b725a677316fedfbe2d2598203e7d0b1fc710

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

require 'facets/module/alias_module_function'
require 'test/unit'

class Test_Module_Alias_Module_Function < 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

11 entries across 11 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/module/test_alias_module_function.rb
facets-2.8.3 test/core/module/test_alias_module_function.rb
facets-2.8.2 test/core/module/test_alias_module_function.rb
facets-2.8.1 test/core/module/test_alias_module_function.rb
facets-2.8.0 test/core/module/test_alias_module_function.rb
facets-2.7.0 test/core/module/test_alias_module_function.rb
facets-2.6.0 test/core/module/test_alias_module_function.rb
facets-2.5.1 test/core/module/test_alias_module_function.rb
facets-2.5.0 test/core/module/test_alias_module_function.rb
facets-2.4.5 test/core/module/test_alias_module_function.rb
facets-2.5.2 test/core/module/test_alias_module_function.rb