diff options
author | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:05:24 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2011-02-18 16:05:24 -0300 |
commit | d9eb007edf6999d2ad8ba09f9c5f03d1b0cea4e5 (patch) | |
tree | 50a60ef50981bfaf2213ac7c139802a1b26dc42e /activesupport/test | |
parent | 8052623a3d2092a8ac02a331df61b21163a71c65 (diff) | |
download | rails-d9eb007edf6999d2ad8ba09f9c5f03d1b0cea4e5.tar.gz rails-d9eb007edf6999d2ad8ba09f9c5f03d1b0cea4e5.tar.bz2 rails-d9eb007edf6999d2ad8ba09f9c5f03d1b0cea4e5.zip |
WeakHash is not used, remove it.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/weak_hash_test.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/activesupport/test/weak_hash_test.rb b/activesupport/test/weak_hash_test.rb deleted file mode 100644 index 7d1620dc34..0000000000 --- a/activesupport/test/weak_hash_test.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'abstract_unit' -require 'active_support/weak_hash' - -class WeakHashTest < ActiveSupport::TestCase - - def setup - @weak_hash = ActiveSupport::WeakHash.new - @str = "A"; - @obj = Object.new - end - - test "allows us to assign value, and return assigned value" do - a = @str; b = @obj - assert_equal @weak_hash[a] = b, b - end - - test "should allow us to assign and read value" do - a = @str; b = @obj - assert_equal @weak_hash[a] = b, b - assert_equal @weak_hash[a], b - end - - test "should use object_id to identify objects" do - a = Object.new - @weak_hash[a] = "b" - assert_nil @weak_hash[a.dup] - end - - test "should find objects that have same hash" do - @weak_hash["a"] = "b" - assert_equal "b", @weak_hash["a"] - end -end |