From 8ebb5b61e8b59e6659997efeeda4c0c42bccd0de Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 12 Sep 2011 00:15:06 +0000 Subject: [PATCH] Rails3: scm: darcs: fix error of test_cat 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@7121 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_darcs_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/repository_darcs_test.rb b/test/unit/repository_darcs_test.rb index f2eb510a2..72e45bf1f 100644 --- a/test/unit/repository_darcs_test.rb +++ b/test/unit/repository_darcs_test.rb @@ -80,7 +80,10 @@ class RepositoryDarcsTest < ActiveSupport::TestCase def test_cat if @repository.scm.supports_cat? + assert_equal 0, @repository.changesets.count @repository.fetch_changesets + @project.reload + assert_equal NUM_REV, @repository.changesets.count cat = @repository.cat("sources/welcome_controller.rb", 2) assert_not_nil cat assert cat.include?('class WelcomeController < ApplicationController')