Add BlobController, remove Refs#blob
This commit is contained in:
parent
39c6579306
commit
576cec6c67
8 changed files with 83 additions and 65 deletions
|
@ -95,7 +95,7 @@ describe "Application access" do
|
|||
before do
|
||||
commit = @project.commit
|
||||
path = commit.tree.contents.select { |i| i.is_a?(Grit::Blob)}.first.name
|
||||
@blob_path = blob_project_ref_path(@project, commit.id, path: path)
|
||||
@blob_path = project_blob_path(@project, File.join(commit.id, path))
|
||||
end
|
||||
|
||||
it { @blob_path.should be_allowed_for @u1 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue