@@ -64,7 +64,7 class TrackerTest < ActiveSupport::TestCase | |||
|
64 | 64 | end |
|
65 | 65 | |
|
66 | 66 | def test_issue_statuses_empty |
|
67 |
WorkflowTransition.delete_all |
|
|
67 | WorkflowTransition.where(:tracker_id => 1).delete_all | |
|
68 | 68 | assert_equal [], Tracker.find(1).issue_statuses |
|
69 | 69 | end |
|
70 | 70 | |
@@ -110,7 +110,7 class TrackerTest < ActiveSupport::TestCase | |||
|
110 | 110 | |
|
111 | 111 | def test_destroying_a_tracker_without_issues_should_not_raise_an_error |
|
112 | 112 | tracker = Tracker.find(1) |
|
113 |
Issue. |
|
|
113 | Issue.where(:tracker_id => tracker.id).delete_all | |
|
114 | 114 | |
|
115 | 115 | assert_difference 'Tracker.count', -1 do |
|
116 | 116 | assert_nothing_raised do |
General Comments 0
You need to be logged in to leave comments.
Login now