Mercurial > hg > soundsoftware-site
comparison test/functional/issue_relations_controller_test.rb @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | 0579821a129a |
children | cbb26bc654de |
comparison
equal
deleted
inserted
replaced
441:cbce1fd3b1b7 | 507:0c939c159af4 |
---|---|
72 @request.session[:user_id] = 3 | 72 @request.session[:user_id] = 3 |
73 post :new, :issue_id => 1, | 73 post :new, :issue_id => 1, |
74 :relation => {:issue_to_id => '4', :relation_type => 'relates', :delay => ''} | 74 :relation => {:issue_to_id => '4', :relation_type => 'relates', :delay => ''} |
75 end | 75 end |
76 end | 76 end |
77 | |
78 should "prevent relation creation when there's a circular dependency" | |
77 | 79 |
78 def test_destroy | 80 def test_destroy |
79 assert_difference 'IssueRelation.count', -1 do | 81 assert_difference 'IssueRelation.count', -1 do |
80 @request.session[:user_id] = 3 | 82 @request.session[:user_id] = 3 |
81 post :destroy, :id => '2', :issue_id => '3' | 83 post :destroy, :id => '2', :issue_id => '3' |