source: subversion/sites/rails_port/test/functional/old_relation_controller_test.rb @ 17044

Last change on this file since 17044 was 14586, checked in by tomhughes, 10 years ago

Merge api06 branch to trunk.

File size: 571 bytes
Line 
1require File.dirname(__FILE__) + '/../test_helper'
2require 'old_relation_controller'
3
4class 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
21end
Note: See TracBrowser for help on using the repository browser.