Skip to content

Commit 2268375

Browse files
committed
fix passing args in tests and rbi files
1 parent 21b6025 commit 2268375

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sorbet/rbi/manual.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module RustCodeOwners
77
def for_file(file)
88
end
99

10-
def generate_and_validate(skip_stage)
10+
def generate_and_validate(files, skip_stage)
1111
end
1212

13-
def validate
13+
def validate(files)
1414
end
1515

1616
def for_team(team)

spec/lib/code_ownership_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
before do
2121
create_non_empty_application
2222
# codeowners-rs is matching files against the codeowners file
23-
RustCodeOwners.generate_and_validate(false)
23+
RustCodeOwners.generate_and_validate(nil, false)
2424
end
2525

2626
context 'when no ownership is found' do
@@ -92,7 +92,7 @@
9292
before do
9393
create_non_empty_application
9494
# codeowners-rs is matching files against the codeowners file
95-
RustCodeOwners.generate_and_validate(false)
95+
RustCodeOwners.generate_and_validate(nil, false)
9696
end
9797

9898
context 'when no ownership is found' do
@@ -162,7 +162,7 @@
162162
before do
163163
create_non_empty_application
164164
# codeowners-rs is matching files against the codeowners file for default path
165-
RustCodeOwners.generate_and_validate(false)
165+
RustCodeOwners.generate_and_validate(nil, false)
166166
end
167167

168168
context 'when no ownership is found' do

0 commit comments

Comments
 (0)