Mercurial > hg > soundsoftware-site
diff test/unit/repository_subversion_test.rb @ 1337:077b8890835a cannam
Merge from live branch
author | Chris Cannam |
---|---|
date | Thu, 20 Jun 2013 13:14:02 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 261b3d9a4903 |
line wrap: on
line diff
--- a/test/unit/repository_subversion_test.rb Fri Jun 14 11:30:07 2013 +0100 +++ b/test/unit/repository_subversion_test.rb Thu Jun 20 13:14:02 2013 +0100 @@ -1,5 +1,5 @@ # Redmine - project management software -# Copyright (C) 2006-2011 Jean-Philippe Lang +# Copyright (C) 2006-2012 Jean-Philippe Lang # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -36,7 +36,7 @@ @project.reload assert_equal NUM_REV, @repository.changesets.count - assert_equal 20, @repository.changes.count + assert_equal 20, @repository.filechanges.count assert_equal 'Initial import.', @repository.changesets.find_by_revision('1').comments end @@ -56,6 +56,16 @@ assert_equal NUM_REV, @repository.changesets.count end + def test_entries + entries = @repository.entries + assert_kind_of Redmine::Scm::Adapters::Entries, entries + end + + def test_entries_for_invalid_path_should_return_nil + entries = @repository.entries('invalid_path') + assert_nil entries + end + def test_latest_changesets assert_equal 0, @repository.changesets.count @repository.fetch_changesets @@ -99,7 +109,7 @@ @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' + assert_equal 2, @repository.filechanges.count, 'Expected to see 2 changes, dir add and file add' entries = @repository.entries('') assert_not_nil entries, 'Expect to find entries'