mirror of
https://github.com/redmine/redmine.git
synced 2025-12-20 15:30:44 +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:
@@ -153,7 +153,7 @@ class CustomFieldsControllerTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
def test_destroy
|
||||
custom_values_count = CustomValue.count(:conditions => {:custom_field_id => 1})
|
||||
custom_values_count = CustomValue.where(:custom_field_id => 1).count
|
||||
assert custom_values_count > 0
|
||||
|
||||
assert_difference 'CustomField.count', -1 do
|
||||
|
||||
Reference in New Issue
Block a user