From dfc9e627dc2dc8eb7787baeb3be6aa04d88d0bbe Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Tue, 29 May 2012 12:43:44 -0700 Subject: [PATCH] Fix tap test. --- test/extensions_test.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/extensions_test.rb b/test/extensions_test.rb index f81b0a6..1c868ee 100644 --- a/test/extensions_test.rb +++ b/test/extensions_test.rb @@ -76,12 +76,7 @@ class StringExtensionsTest < Test::Unit::TestCase end def test_tap - assert "http://google.com".tap do |url| - url << "/analtyics/" - end - assert "http://google.com".tap do |url| - url << "/download.zip" - end + assert_equal("http://google.com/foo/", "http://google.com".tap {|url| url << "/foo/" }) end end