From 91a1808ff3c77129307de94f2d02e7b35ad3d0de Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 12 Sep 2011 04:04:10 +0000 Subject: [PATCH] Rails3: scm: subversion: fix error of test_directory_listing_with_square_brackets_in_base at unit model test On Rails 3.1, ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection error raises. For more details, see r7062. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7152 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_subversion_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb index 67e2521bc..fa9e59d3c 100644 --- a/test/unit/repository_subversion_test.rb +++ b/test/unit/repository_subversion_test.rb @@ -94,8 +94,9 @@ class RepositorySubversionTest < ActiveSupport::TestCase :project => @project, :url => "file:///#{self.class.repository_path('subversion')}/subversion_test/[folder_with_brackets]") + assert_equal 0, @repository.changesets.count @repository.fetch_changesets - @repository.reload + @project.reload assert_equal 1, @repository.changesets.count, 'Expected to see 1 revision' assert_equal 2, @repository.changes.count, 'Expected to see 2 changes, dir add and file add' -- 2.39.5