Mercurial > hg > soundsoftware-site
diff test/unit/.svn/text-base/issue_status_test.rb.svn-base @ 1:cca12e1c1fd4
* Update to Redmine trunk (SVN revisions 3860-3892)
author | Chris Cannam |
---|---|
date | Wed, 28 Jul 2010 12:08:28 +0100 |
parents | 513646585e45 |
children | af80e5618e9b |
line wrap: on
line diff
--- a/test/unit/.svn/text-base/issue_status_test.rb.svn-base Fri Jul 23 15:52:44 2010 +0100 +++ b/test/unit/.svn/text-base/issue_status_test.rb.svn-base Wed Jul 28 12:08:28 2010 +0100 @@ -32,10 +32,12 @@ 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