PageRenderTime 101ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/binding/test_self.rb

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 7e849acced1065182f4545221eaf7575 MD5 | raw file
 1require 'facets/binding/self'
 2require 'test/unit'
 3
 4class TC_Binding_Self < Test::Unit::TestCase
 5
 6  def setup
 7    a = 1
 8    b = 2
 9    x = "hello"
10    @bind = binding
11  end
12
13  def test_self
14    assert_equal( self, @bind.self )
15  end
16
17end
18