Skip to content

Commit 2118384

Browse files
Update engine version spec
1 parent c6ccfd2 commit 2118384

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
@@ -20,8 +20,8 @@
2020
RUBY_VERSION.should =~ /\A\d+\.\d+\.\d+\z/
2121
end
2222

23-
it 'RUBY_ENGINE_VERSION matches /\A\d+(\.\d+)*(-rc\d+)?(\-dev)?(-\h+)?\z/' do
24-
RUBY_ENGINE_VERSION.should =~ /\A\d+(\.\d+)*(-rc\d+)?(\-dev)?(-\h+)?\z/
23+
it 'RUBY_ENGINE_VERSION matches /\A\d+(\.\d+)*(-(rc|beta\.)\d+)?(\-dev)?(-\h+)?\z/' do
24+
RUBY_ENGINE_VERSION.should =~ /\A\d+(\.\d+)*(-(rc|beta\.)\d+)?(\-dev)?(-\h+)?\z/
2525
end
2626

2727
it "RUBY_ENGINE_VERSION can be parsed as a Gem::Version" do

0 commit comments

Comments
 (0)