diff options
-rw-r--r-- | test/unit/member_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb index 4ef66e512..deb04d95b 100644 --- a/test/unit/member_test.rb +++ b/test/unit/member_test.rb @@ -77,13 +77,16 @@ class MemberTest < ActiveSupport::TestCase end def test_destroy + category1 = IssueCategory.find(1) + assert_equal @jsmith.user.id, category1.assigned_to_id assert_difference 'Member.count', -1 do assert_difference 'MemberRole.count', -1 do @jsmith.destroy end end - assert_raise(ActiveRecord::RecordNotFound) { Member.find(@jsmith.id) } + category1.reload + assert_nil category1.assigned_to_id end context "removing permissions" do |