##// END OF EJS Templates
Adds a test for changeset/issue relations deletion....
Jean-Philippe Lang -
r8728:b5fabd052bc5
parent child
Show More
@@ -83,6 +83,15 class RepositoryTest < ActiveSupport::TestCase
83 end
83 end
84 end
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 def test_should_not_create_with_disabled_scm
95 def test_should_not_create_with_disabled_scm
87 # disable Subversion
96 # disable Subversion
88 with_settings :enabled_scm => ['Darcs', 'Git'] do
97 with_settings :enabled_scm => ['Darcs', 'Git'] do
General Comments 0
You need to be logged in to leave comments. Login now