aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object_ext_test.rb
blob: 04c19ed2aab8d9cf352317f21a12fd8755179627 (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'abstract_unit'
require 'active_support/core_ext/object/metaclass'

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