@@ -83,6 +83,15 class RepositoryTest < ActiveSupport::TestCase | |||
|
83 | 83 | end |
|
84 | 84 | end |
|
85 | 85 | |
|
86 | def test_destroy_should_delete_issues_associations | |
|
87 | changeset = Changeset.find(102) | |
|
88 | changeset.issues = Issue.find_all_by_id([1, 2]) | |
|
89 | ||
|
90 | assert_difference 'Changeset.connection.select_all("select * from changesets_issues").size', -2 do | |
|
91 | Repository.find(10).destroy | |
|
92 | end | |
|
93 | end | |
|
94 | ||
|
86 | 95 | def test_should_not_create_with_disabled_scm |
|
87 | 96 | # disable Subversion |
|
88 | 97 | with_settings :enabled_scm => ['Darcs', 'Git'] do |
General Comments 0
You need to be logged in to leave comments.
Login now