protected
def load_entries_changesets(entries)
+ return unless entries
+
entries_with_identifier = entries.select {|entry| entry.lastrev && entry.lastrev.identifier.present?}
identifiers = entries_with_identifier.map {|entry| entry.lastrev.identifier}.compact.uniq
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