mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15674 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
28137fa3da
commit
d3d62f4ded
@ -64,7 +64,7 @@ class TrackerTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_issue_statuses_empty
|
||||
WorkflowTransition.delete_all("tracker_id = 1")
|
||||
WorkflowTransition.where(:tracker_id => 1).delete_all
|
||||
assert_equal [], Tracker.find(1).issue_statuses
|
||||
end
|
||||
|
||||
@ -110,7 +110,7 @@ class TrackerTest < ActiveSupport::TestCase
|
||||
|
||||
def test_destroying_a_tracker_without_issues_should_not_raise_an_error
|
||||
tracker = Tracker.find(1)
|
||||
Issue.delete_all :tracker_id => tracker.id
|
||||
Issue.where(:tracker_id => tracker.id).delete_all
|
||||
|
||||
assert_difference 'Tracker.count', -1 do
|
||||
assert_nothing_raised do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user