Fix tests and remove app/models/repository.rb

This commit is contained in:
Dmitriy Zaporozhets 2013-03-31 18:50:17 +03:00
parent 154e54b46e
commit 9dc644635f
6 changed files with 5 additions and 325 deletions

View file

@ -100,8 +100,8 @@ module ExtractsPath
# It is used "@project.repository.commits(@ref, @path, 1, 0)",
# because "@project.repository.commit(@ref)" returns wrong commit when @ref is tag name.
commits = @project.repository.commits(@ref, @path, 1, 0)
@commit = CommitDecorator.decorate(commits.first)
@commit = @project.repository.commits(@ref, @path, 1, 0).first
@commit = CommitDecorator.decorate(@commit)
@tree = Tree.new(@commit.tree, @ref, @path)
@tree = TreeDecorator.new(@tree)