Fix security tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
619c81b488
commit
3bf316dbd9
|
@ -90,7 +90,7 @@ describe "Internal Project Access", feature: true do
|
||||||
describe "GET /:project_path/blob" do
|
describe "GET /:project_path/blob" do
|
||||||
before do
|
before do
|
||||||
commit = project.repository.commit
|
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))
|
@blob_path = project_blob_path(project, File.join(commit.id, path))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ describe "Private Project Access", feature: true do
|
||||||
describe "GET /:project_path/blob" do
|
describe "GET /:project_path/blob" do
|
||||||
before do
|
before do
|
||||||
commit = project.repository.commit
|
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))
|
@blob_path = project_blob_path(project, File.join(commit.id, path))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ describe "Public Project Access", feature: true do
|
||||||
describe "GET /:project_path/blob" do
|
describe "GET /:project_path/blob" do
|
||||||
before do
|
before do
|
||||||
commit = project.repository.commit
|
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))
|
@blob_path = project_blob_path(project, File.join(commit.id, path))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue