Skip to content

Commit a080edb

Browse files
committed
Update Truffle strscan test to use ruby_exe.
1 parent cd82f50 commit a080edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/truffle/strscan/strscan_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
describe 'StringScanner' do
66
it 'has a `scan_internal` method of under 100 AST nodes' do
7-
Truffle::Debug.ast_size(StringScanner.instance_method(:scan_internal)).should < 100
7+
ruby_exe('require "strscan"; print Truffle::Debug.ast_size(StringScanner.instance_method(:scan_internal))').to_i.should < 100
88
end
99
end

0 commit comments

Comments
 (0)