Cleanup of finders with :conditions option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11963 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -280,7 +280,7 @@ class RepositoriesControllerTest < ActionController::TestCase
|
||||
:revision => 100,
|
||||
:comments => 'Committed by foo.'
|
||||
)
|
||||
assert_no_difference "Changeset.count(:conditions => 'user_id = 3')" do
|
||||
assert_no_difference "Changeset.where(:user_id => 3).count" do
|
||||
post :committers, :id => 10, :committers => { '0' => ['foo', '2'], '1' => ['dlopper', '3']}
|
||||
assert_response 302
|
||||
assert_equal User.find(2), c.reload.user
|
||||
|
||||
Reference in New Issue
Block a user