1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove double test for header inheritance leaks

This commit is contained in:
Mark McSpadden 2012-02-14 10:53:34 -06:00
parent 0101d27de6
commit a93cbbd40c

View file

@ -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)