summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-07 21:32:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-07 21:32:14 +0000
commitee173b64b831bd297e6d4204e17d14dbe0448137 (patch)
tree370e8282806e79cbebb1e8a999bb574c0cc9bc06 /test/unit/repository_test.rb
parentb66e68dc82c70f755edab6f8f47ef91eaa5627d1 (diff)
downloadredmine-ee173b64b831bd297e6d4204e17d14dbe0448137.tar.gz
redmine-ee173b64b831bd297e6d4204e17d14dbe0448137.zip
Misc tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13731 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r--test/unit/repository_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index 54f72bbe8..c89e20c11 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -459,4 +459,10 @@ class RepositoryTest < ActiveSupport::TestCase
expected = {"Dave Lopper"=>{:commits_count=>11, :changes_count=>3}}
assert_equal expected, repository.stats_by_author
end
+
+ def test_fetch_changesets
+ # 2 repositories in fixtures
+ Repository::Subversion.any_instance.expects(:fetch_changesets).twice.returns(true)
+ Repository.fetch_changesets
+ end
end