Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c661fbda
Commit
c661fbda
authored
Feb 16, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
parent
c6bbc4fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
spec/lib/gitlab/checks/change_access_spec.rb
spec/lib/gitlab/checks/change_access_spec.rb
+2
-2
spec/lib/gitlab/elastic/search_results_spec.rb
spec/lib/gitlab/elastic/search_results_spec.rb
+4
-6
No files found.
spec/lib/gitlab/checks/change_access_spec.rb
View file @
c661fbda
...
...
@@ -193,7 +193,7 @@ describe Gitlab::Checks::ChangeAccess, lib: true do
white_listed
.
each
do
|
file_path
|
old_rev
=
'be93687618e4b132087f430a4d8fc3a609c9b77c'
old_rev
=
new_rev
if
new_rev
new_rev
=
project
.
repository
.
c
ommit_file
(
user
,
file_path
,
"commit
#{
file_path
}
"
,
message:
"commit
#{
file_path
}
"
,
branch_name:
"master"
,
update:
false
)
new_rev
=
project
.
repository
.
c
reate_file
(
user
,
file_path
,
"commit
#{
file_path
}
"
,
message:
"commit
#{
file_path
}
"
,
branch_name:
"master"
)
allow
(
project
.
repository
).
to
receive
(
:new_commits
).
and_return
(
project
.
repository
.
commits_between
(
old_rev
,
new_rev
)
...
...
@@ -216,7 +216,7 @@ describe Gitlab::Checks::ChangeAccess, lib: true do
black_listed
.
each
do
|
file_path
|
old_rev
=
'be93687618e4b132087f430a4d8fc3a609c9b77c'
old_rev
=
new_rev
if
new_rev
new_rev
=
project
.
repository
.
c
ommit_file
(
user
,
file_path
,
"commit
#{
file_path
}
"
,
message:
"commit
#{
file_path
}
"
,
branch_name:
"master"
,
update:
false
)
new_rev
=
project
.
repository
.
c
reate_file
(
user
,
file_path
,
"commit
#{
file_path
}
"
,
message:
"commit
#{
file_path
}
"
,
branch_name:
"master"
)
allow
(
project
.
repository
).
to
receive
(
:new_commits
).
and_return
(
project
.
repository
.
commits_between
(
old_rev
,
new_rev
)
...
...
spec/lib/gitlab/elastic/search_results_spec.rb
View file @
c661fbda
...
...
@@ -557,13 +557,12 @@ describe Gitlab::Elastic::SearchResults, lib: true do
context
'Commits'
do
it
'finds right set of commits'
do
[
internal_project
,
private_project1
,
private_project2
,
public_project
].
each
do
|
project
|
project
.
repository
.
c
ommit
_file
(
project
.
repository
.
c
reate
_file
(
user
,
'test-file'
,
'search test'
,
message:
'search test'
,
branch_name:
'master'
,
update:
false
branch_name:
'master'
)
project
.
repository
.
index_commits
...
...
@@ -590,13 +589,12 @@ describe Gitlab::Elastic::SearchResults, lib: true do
context
'Blobs'
do
it
'finds right set of blobs'
do
[
internal_project
,
private_project1
,
private_project2
,
public_project
].
each
do
|
project
|
project
.
repository
.
c
ommit
_file
(
project
.
repository
.
c
reate
_file
(
user
,
'test-file'
,
'tesla'
,
message:
'search test'
,
branch_name:
'master'
,
update:
false
branch_name:
'master'
)
project
.
repository
.
index_blobs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment