]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/old_node_controller_test.rb
Fixed fixtures and added new tests for ways and way_nodes.
[rails.git] / test / functional / old_node_controller_test.rb
index 4b0cf0363cf3f33a73c78af04c67a87013c18a69..ca9a114b154c11f969e96ae6d7ab0ec28c684e47 100644 (file)
@@ -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