Sha256: f2ffd62d378bb180e6394ef6088114c10cbb859dfa1c0e67b028354ef86da71a
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
require 'abstract_unit' require 'active_support/core_ext/proc' class ProcTests < Test::Unit::TestCase def test_bind_returns_method_with_changed_self block = Proc.new { self } assert_equal self, block.call bound_block = block.bind("hello") assert_not_equal block, bound_block assert_equal "hello", bound_block.call end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recliner-0.0.1 | vendor/activesupport/test/core_ext/proc_test.rb |