diff options
author | Mark McSpadden <markmcspadden@gmail.com> | 2012-02-14 10:53:34 -0600 |
---|---|---|
committer | Mark McSpadden <markmcspadden@gmail.com> | 2012-02-14 10:53:34 -0600 |
commit | a93cbbd40c22821336953647e43ae5a8771b7886 (patch) | |
tree | 4da19fa7f7f04f32e97abef8b7d7e4ccf5d58acd /activeresource/test/cases/base_test.rb | |
parent | 0101d27de606db25c244aae2243f337cfbba6ed0 (diff) | |
download | rails-a93cbbd40c22821336953647e43ae5a8771b7886.tar.gz rails-a93cbbd40c22821336953647e43ae5a8771b7886.tar.bz2 rails-a93cbbd40c22821336953647e43ae5a8771b7886.zip |
Remove double test for header inheritance leaks
Diffstat (limited to 'activeresource/test/cases/base_test.rb')
-rw-r--r-- | activeresource/test/cases/base_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb index e89c5b19d3..33a6596602 100644 --- a/activeresource/test/cases/base_test.rb +++ b/activeresource/test/cases/base_test.rb @@ -473,17 +473,6 @@ class BaseTest < ActiveSupport::TestCase assert_equal nil, fruit.headers['key2'] end - def test_header_inheritance_should_not_leak_upstream - fruit = Class.new(ActiveResource::Base) - apple = Class.new(fruit) - fruit.site = 'http://market' - - fruit.headers['key'] = 'value' - - apple.headers['key2'] = 'value2' - assert_equal nil, fruit.headers['key2'] - end - ######################################################################## # Tests for setting up remote URLs for a given model (including adding # parameters appropriately) |