]> git.openstreetmap.org Git - rails.git/blob - test/functional/old_relation_controller_test.rb
translating the listing of diary entries. Adding some initial tests for checking...
[rails.git] / test / functional / old_relation_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'old_relation_controller'
3
4 class OldRelationControllerTest < ActionController::TestCase
5   api_fixtures
6
7   # -------------------------------------
8   # Test reading old relations.
9   # -------------------------------------
10   def test_history
11     # check that a visible relations is returned properly
12     get :history, :id => relations(:visible_relation).id
13     assert_response :success
14
15     # check chat a non-existent relations is not returned
16     get :history, :id => 0
17     assert_response :not_found
18
19   end
20
21 end