mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
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:
@@ -40,7 +40,7 @@ class UserTest < ActiveSupport::TestCase
|
||||
def test_generate
|
||||
User.generate!(:firstname => 'Testing connection')
|
||||
User.generate!(:firstname => 'Testing connection')
|
||||
assert_equal 2, User.count(:all, :conditions => {:firstname => 'Testing connection'})
|
||||
assert_equal 2, User.where(:firstname => 'Testing connection').count
|
||||
end
|
||||
|
||||
def test_truth
|
||||
|
||||
Reference in New Issue
Block a user