Fix security tests

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-25 16:10:03 +03:00
parent 619c81b488
commit 3bf316dbd9
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ describe "Internal Project Access", feature: true do
describe "GET /:project_path/blob" do
before do
commit = project.repository.commit
path = commit.tree.contents.select { |i| i.is_a?(Grit::Blob) }.first.name
path = '.gitignore'
@blob_path = project_blob_path(project, File.join(commit.id, path))
end

View File

@ -90,7 +90,7 @@ describe "Private Project Access", feature: true do
describe "GET /:project_path/blob" do
before do
commit = project.repository.commit
path = commit.tree.contents.select { |i| i.is_a?(Grit::Blob) }.first.name
path = '.gitignore'
@blob_path = project_blob_path(project, File.join(commit.id, path))
end

View File

@ -95,7 +95,7 @@ describe "Public Project Access", feature: true do
describe "GET /:project_path/blob" do
before do
commit = project.repository.commit
path = commit.tree.contents.select { |i| i.is_a?(Grit::Blob) }.first.name
path = '.gitignore'
@blob_path = project_blob_path(project, File.join(commit.id, path))
end