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