scm: mercurial: code clean up unit model test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5116 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-14 08:14:38 +00:00 committed by Eric Davis
parent 66d6ef870a
commit 4efc49ef2b
1 changed files with 4 additions and 2 deletions

View File

@ -90,10 +90,12 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
assert_equal %w|28 27|, changesets.collect(&:revision) assert_equal %w|28 27|, changesets.collect(&:revision)
# with_filepath # with_filepath
changesets = @repository.latest_changesets('/sql_escape/percent%dir/percent%file1.txt', nil) changesets = @repository.latest_changesets(
'/sql_escape/percent%dir/percent%file1.txt', nil)
assert_equal %w|11 10 9|, changesets.collect(&:revision) assert_equal %w|11 10 9|, changesets.collect(&:revision)
changesets = @repository.latest_changesets('/sql_escape/underscore_dir/understrike_file.txt', nil) changesets = @repository.latest_changesets(
'/sql_escape/underscore_dir/understrike_file.txt', nil)
assert_equal %w|12 9|, changesets.collect(&:revision) assert_equal %w|12 9|, changesets.collect(&:revision)
changesets = @repository.latest_changesets('README', nil) changesets = @repository.latest_changesets('README', nil)