@@ -100,7 +100,7 class RepositoryTest < ActiveSupport::TestCase | |||
|
100 | 100 | def test_destroy |
|
101 | 101 | changesets = Changeset.count(:all, :conditions => "repository_id = 10") |
|
102 | 102 | changes = Change.count(:all, :conditions => "repository_id = 10", |
|
103 |
: |
|
|
103 | :joins => :changeset) | |
|
104 | 104 | assert_difference 'Changeset.count', -changesets do |
|
105 | 105 | assert_difference 'Change.count', -changes do |
|
106 | 106 | Repository.find(10).destroy |
General Comments 0
You need to be logged in to leave comments.
Login now