Skip to content

Commit

Permalink
Fix tap test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Molina committed May 29, 2012
1 parent 9a32b45 commit dfc9e62
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/extensions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ def test_remove_extended
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
Expand Down

0 comments on commit dfc9e62

Please sign in to comment.