Add BlobController, remove Refs#blob

This commit is contained in:
Robert Speicher 2012-09-17 13:49:57 -04:00
parent 39c6579306
commit 576cec6c67
8 changed files with 83 additions and 65 deletions

View file

@ -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 }