summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-12 02:43:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-12 02:43:44 +0000
commit9988b4763418157c1a8d6f86a120434921fd7b06 (patch)
treef3c591d9341ad1375320268e9d493db148134c45 /test/unit/repository_cvs_test.rb
parent3437adbf52fea095cab5b772fde222de174f0a6a (diff)
downloadredmine-9988b4763418157c1a8d6f86a120434921fd7b06.tar.gz
redmine-9988b4763418157c1a8d6f86a120434921fd7b06.zip
Rails3: scm: cvs: fix error of test_entries_rev3 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@7133 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index b7047206c..bf7cfc24a 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -91,8 +91,10 @@ class RepositoryCvsTest < ActiveSupport::TestCase
end
def test_entries_rev3
+ assert_equal 0, @repository.changesets.count
@repository.fetch_changesets
- @repository.reload
+ @project.reload
+ assert_equal CHANGESETS_NUM, @repository.changesets.count
entries = @repository.entries('', '3')
assert_equal 3, entries.size
assert_equal entries[2].name, "README"