Skip to content

Commit 92c61d1

Browse files
authored
Merge pull request #979 from ksss/validate-library
Validate signature of library by steep
2 parents 48b43b4 + 179cacb commit 92c61d1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/test

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,11 @@ class Runner
148148
end
149149

150150
def run_steep_check
151-
with_expectation = if test_dir.join('steep_expectations.yml').exist?
152-
['--with-expectation']
153-
else
154-
[]
151+
options = ['--validate=library']
152+
if test_dir.join('steep_expectations.yml').exist?
153+
options.concat ['--with-expectation']
155154
end
156-
sh 'bundle', 'exec', 'steep', 'check', *with_expectation, chdir: test_dir.to_s
155+
sh 'bundle', 'exec', 'steep', 'check', *options, chdir: test_dir.to_s
157156
end
158157

159158
def check_untyped_call

0 commit comments

Comments
 (0)