Sha256: 40a2d23636e9853409992a01355697585873d4c4663588abcbd11c3450f68255

Contents?: true

Size: 365 Bytes

Versions: 11

Compression:

Stored size: 365 Bytes

Contents

require 'facets/module/redirect_method'
require 'test/unit'

class Test_Module_RedirectMethod < Test::Unit::TestCase

  def red1 ; 1 ; end

  redirect_method :red2 => :red1

  def test_redirect_red
    assert_equal( 1, red2 )
  end

  # redirect

  def blue1 ; 1 ; end

  redirect :blue2 => :blue1

  def test_redirect_blue
    assert_equal( 1, blue2 )
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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