X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6a276202e559903cd0e21fb25b8f72a01cbd9314..138c20322d74cd0418b45e385851c9df784fbe7b:/test/functional/old_node_controller_test.rb diff --git a/test/functional/old_node_controller_test.rb b/test/functional/old_node_controller_test.rb index 4b0cf0363..ca9a114b1 100644 --- a/test/functional/old_node_controller_test.rb +++ b/test/functional/old_node_controller_test.rb @@ -153,18 +153,4 @@ class OldNodeControllerTest < Test::Unit::TestCase @request.env["RAW_POST_DATA"] = c.to_s end - ## - # takes a block which is executed in the context of a different - # ActionController instance. this is used so that code can call methods - # on the node controller whilst testing the old_node controller. - def with_controller(new_controller) - controller_save = @controller - begin - @controller = new_controller - yield - ensure - @controller = controller_save - end - end - end