@@ -96,7 +96,7 class IssueStatusesControllerTest < ActionController::TestCase | |||||
96 | assert_nil IssueStatus.find_by_id(1) |
|
96 | assert_nil IssueStatus.find_by_id(1) | |
97 | end |
|
97 | end | |
98 |
|
98 | |||
99 |
def test_destroy_should_block_if_status_i |
|
99 | def test_destroy_should_block_if_status_is_used_by_issues | |
100 | assert Issue.where(:status_id => 1).any? |
|
100 | assert Issue.where(:status_id => 1).any? | |
101 | Tracker.where(:default_status_id => 1).delete_all |
|
101 | Tracker.where(:default_status_id => 1).delete_all | |
102 |
|
102 | |||
@@ -107,7 +107,7 class IssueStatusesControllerTest < ActionController::TestCase | |||||
107 | assert_not_nil IssueStatus.find_by_id(1) |
|
107 | assert_not_nil IssueStatus.find_by_id(1) | |
108 | end |
|
108 | end | |
109 |
|
109 | |||
110 |
def test_destroy_should_block_if_status_i |
|
110 | def test_destroy_should_block_if_status_is_used_as_tracker_default_status | |
111 | Issue.where(:status_id => 1).delete_all |
|
111 | Issue.where(:status_id => 1).delete_all | |
112 | assert Tracker.where(:default_status_id => 1).any? |
|
112 | assert Tracker.where(:default_status_id => 1).any? | |
113 |
|
113 |
General Comments 0
You need to be logged in to leave comments.
Login now