blob: a413d331c4d1792d6c33edc5cba4888f7440507d (
plain) (
blame)
1
2
3
4
5
6
7
8
|
require 'abstract_unit'
class ObjectExtTest < Test::Unit::TestCase
def test_tap_yields_and_returns_self
foo = Object.new
assert_equal foo, foo.tap { |x| assert_equal foo, x; :bar }
end
end
|