Skip to content

Commit c0d9733

Browse files
authored
Merge pull request #45 from Shopify/fix-3.4.0-files
Rename 3.4.0-preview files
2 parents 1f1dede + ce23b96 commit c0d9733

6 files changed

Lines changed: 12 additions & 1 deletion

File tree

test/shopify_ruby_definitions/test_ruby_versions.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ def test_ALL_VERSIONS
1111
truffleruby_versions, cruby_versions = RubyVersions::ALL_VERSIONS.partition { |v| v.start_with?("truffleruby") }
1212

1313
cruby_versions.each do |v|
14-
assert_match(/\A(?:yjit\-)?\d+\.\d+\.\d+(?:\-[\w\-]+)?\z/, v)
14+
assert_match(
15+
%r{
16+
\A
17+
(?:yjit\-)?
18+
\d+\.\d+\.\d+ # match version (e.g. 3.4.0)
19+
(?:\-preview\d*)? # match -preview optionally
20+
# preview tag must be before the pshopify tag
21+
(?:\-pshopify\d*)? # match -pshopify optionally
22+
\z
23+
}x,
24+
v,
25+
)
1526
end
1627

1728
truffleruby_versions.each do |v|

0 commit comments

Comments
 (0)