X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d0aa199e92a110c93791bcc9eeb2c691d004e87a..44034cd78197a48e561104ceafa5b441748fbedf:/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 index 374ea7dc2..b4e3c5127 100644 --- a/test/functional/old_way_controller_test.rb +++ b/test/functional/old_way_controller_test.rb @@ -17,11 +17,13 @@ class OldWayControllerTest < Test::Unit::TestCase # Test reading old ways. # ------------------------------------- - def test_history + 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