summaryrefslogtreecommitdiffstats
path: root/test/functional/enumerations_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/enumerations_controller_test.rb')
-rw-r--r--test/functional/enumerations_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index dba0720d6..29e3eb1ec 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -117,7 +117,7 @@ class EnumerationsControllerTest < ActionController::TestCase
end
def test_destroy_enumeration_in_use_with_reassignment
- issue = Issue.find(:first, :conditions => {:priority_id => 4})
+ issue = Issue.where(:priority_id => 4).first
assert_difference 'IssuePriority.count', -1 do
delete :destroy, :id => 4, :reassign_to_id => 6
end