mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 12:01:33 +02:00
Fixed: Deleting statuses doesn't delete all workflow entries (#5811).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3881 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,10 +32,12 @@ class IssueStatusTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_destroy
|
||||
count_before = IssueStatus.count
|
||||
status = IssueStatus.find(3)
|
||||
assert status.destroy
|
||||
assert_equal count_before - 1, IssueStatus.count
|
||||
assert_difference 'IssueStatus.count', -1 do
|
||||
assert status.destroy
|
||||
end
|
||||
assert_nil Workflow.first(:conditions => {:old_status_id => status.id})
|
||||
assert_nil Workflow.first(:conditions => {:new_status_id => status.id})
|
||||
end
|
||||
|
||||
def test_destroy_status_in_use
|
||||
|
||||
Reference in New Issue
Block a user