X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3d5ee2675b65030ef233ff95c58a70547c6f3995..98184dfb9cacc74ac5bcb91a41a2d5804b3f4f7d:/test/functional/old_way_controller_test.rb diff --git a/test/functional/old_way_controller_test.rb b/test/functional/old_way_controller_test.rb deleted file mode 100644 index b4e3c5127..000000000 --- a/test/functional/old_way_controller_test.rb +++ /dev/null @@ -1,33 +0,0 @@ -require File.dirname(__FILE__) + '/../test_helper' -require 'old_way_controller' - -# Re-raise errors caught by the controller. -class OldWayController; def rescue_action(e) raise e end; end - -class OldWayControllerTest < Test::Unit::TestCase - api_fixtures - - def setup - @controller = OldWayController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - end - - # ------------------------------------- - # Test reading old ways. - # ------------------------------------- - - def test_history_visible - # check that a visible way is returned properly - get :history, :id => ways(:visible_way).id - assert_response :success - end - - def test_history_invisible - # check chat a non-existent way is not returned - get :history, :id => 0 - assert_response :not_found - - end - -end