1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'old_relation_controller'
4 class OldRelationControllerTest < ActionController::TestCase
7 # -------------------------------------
8 # Test reading old relations.
9 # -------------------------------------
11 # check that a visible relations is returned properly
12 get :history, :id => relations(:visible_relation).relation_id
13 assert_response :success
15 # check chat a non-existent relations is not returned
16 get :history, :id => 0
17 assert_response :not_found