Skip to content

Commit 18213b6

Browse files
committed
Allow multiple extra components for the ABI version
1 parent 6ecaee2 commit 18213b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/truffle/identity_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
RbConfig::CONFIG['RUBY_INSTALL_NAME'].should == 'truffleruby'
6868
end
6969

70-
it "RbConfig::CONFIG['ruby_version'] is the ABI version and starts with RUBY_VERSION and has an extra component" do
71-
RbConfig::CONFIG['ruby_version'].should =~ /\A#{Regexp.escape RUBY_VERSION}\.\d+\z/
70+
it "RbConfig::CONFIG['ruby_version'] is the ABI version and starts with RUBY_VERSION and has at least an extra component" do
71+
RbConfig::CONFIG['ruby_version'].should =~ /\A#{Regexp.escape RUBY_VERSION}\.\d+(\.\d+)*\z/
7272
end
7373

7474
it "RbConfig::CONFIG['RUBY_BASE_NAME'] is 'ruby'" do

0 commit comments

Comments
 (0)