From ae426dcc1c52abeb4be55b4d19dd1a6990bafc86 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Thu, 8 Nov 2012 22:22:03 +0300 Subject: [PATCH] remove useless test --- test/indifferent_hash.rb | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/indifferent_hash.rb diff --git a/test/indifferent_hash.rb b/test/indifferent_hash.rb deleted file mode 100644 index 43dd7529..00000000 --- a/test/indifferent_hash.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'test_helper' - -class IndifferentHashTest < ActiveSupport::TestCase - setup do - @hash = Devise::IndifferentHash.new - end - - test "it overwrites getter and setter" do - @hash[:foo] = "bar" - assert_equal "bar", @hash["foo"] - assert_equal "bar", @hash[:foo] - - @hash["foo"] = "baz" - assert_equal "baz", @hash["foo"] - assert_equal "baz", @hash[:foo] - end - - test "it overwrites update" do - @hash.update :foo => "bar" - assert_equal "bar", @hash["foo"] - assert_equal "bar", @hash[:foo] - - @hash.update "foo" => "baz" - assert_equal "baz", @hash["foo"] - assert_equal "baz", @hash[:foo] - end - - test "it returns a Hash on to_hash" do - @hash[:foo] = "bar" - assert_equal Hash["foo", "bar"], @hash.to_hash - assert_kind_of Hash, @hash.to_hash - end -end if defined?(Devise::IndifferentHash) \ No newline at end of file