Sha256: b60bd7a3c6859766fbf511cb56a37a05fb5f036bc3a3847ef83f11703aa45624

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
kajam-1.0.3.rc2 vendor/rails/activesupport/test/core_ext/object_ext_test.rb
radiant-1.0.0.rc2 vendor/rails/activesupport/test/core_ext/object_ext_test.rb
radiant-1.0.0.rc1 vendor/rails/activesupport/test/core_ext/object_ext_test.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/test/core_ext/object_ext_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/test/core_ext/object_ext_test.rb