Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/repositories_controller_test.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children | af80e5618e9b |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
96 # add a commit with an unknown user | 96 # add a commit with an unknown user |
97 c = Changeset.create!(:repository => Project.find(1).repository, :committer => 'foo', :committed_on => Time.now, :revision => 100, :comments => 'Committed by foo.') | 97 c = Changeset.create!(:repository => Project.find(1).repository, :committer => 'foo', :committed_on => Time.now, :revision => 100, :comments => 'Committed by foo.') |
98 | 98 |
99 assert_no_difference "Changeset.count(:conditions => 'user_id = 3')" do | 99 assert_no_difference "Changeset.count(:conditions => 'user_id = 3')" do |
100 post :committers, :id => 1, :committers => { '0' => ['foo', '2'], '1' => ['dlopper', '3']} | 100 post :committers, :id => 1, :committers => { '0' => ['foo', '2'], '1' => ['dlopper', '3']} |
101 assert_redirected_to 'projects/ecookbook/repository/committers' | 101 assert_redirected_to '/projects/ecookbook/repository/committers' |
102 assert_equal User.find(2), c.reload.user | 102 assert_equal User.find(2), c.reload.user |
103 end | 103 end |
104 end | 104 end |
105 end | 105 end |