Skip to content

Commit 943fc14

Browse files
committed
Fix a spec failing on double digits ruby version
1 parent 04b855c commit 943fc14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/opal/core/language/predefined_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114

115115
it "includes RUBY_VERSION" do
116116
Object.const_defined?(:RUBY_VERSION).should == true
117-
RUBY_VERSION.should =~ /^\d\.\d\.\d$/
117+
RUBY_VERSION.should =~ /^\d+\.\d+\.\d+$/
118118
end
119119

120120
it "includes RUBY_RELEASE_DATE" do

0 commit comments

Comments
 (0)