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
2dd750f9
Commit
2dd750f9
authored
Mar 12, 2021
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User danger helper for all_changed_files
parent
a52f1b6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/tooling/danger/project_helper_spec.rb
spec/tooling/danger/project_helper_spec.rb
+1
-1
tooling/danger/project_helper.rb
tooling/danger/project_helper.rb
+1
-1
No files found.
spec/tooling/danger/project_helper_spec.rb
View file @
2dd750f9
...
...
@@ -236,7 +236,7 @@ RSpec.describe Tooling::Danger::ProjectHelper do
subject
{
project_helper
.
all_ee_changes
}
it
'returns all changed files starting with ee/'
do
expect
(
project
_helper
).
to
receive
(
:all_changed_files
).
and_return
(
%w[fr/ee/beer.rb ee/wine.rb ee/lib/ido.rb ee.k]
)
expect
(
fake
_helper
).
to
receive
(
:all_changed_files
).
and_return
(
%w[fr/ee/beer.rb ee/wine.rb ee/lib/ido.rb ee.k]
)
is_expected
.
to
match_array
(
%w[ee/wine.rb ee/lib/ido.rb]
)
end
...
...
tooling/danger/project_helper.rb
View file @
2dd750f9
...
...
@@ -149,7 +149,7 @@ module Tooling
end
def
all_ee_changes
all_changed_files
.
grep
(
%r{
\A
ee/}
)
helper
.
all_changed_files
.
grep
(
%r{
\A
ee/}
)
end
def
project_name
...
...
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