Skip to content

Commit 4fb8f3f

Browse files
committed
Add skip_if_ruby_platform matches.
1 parent b4a529d commit 4fb8f3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/sus/it.rb

+6
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,11 @@ def skip_if_maximum_ruby_version(version)
8989
skip "Ruby #{version} is not supported, but running #{RUBY_VERSION}!"
9090
end
9191
end
92+
93+
def skip_if_ruby_platform(pattern)
94+
if match = RUBY_PLATFORM.match(pattern)
95+
skip "Ruby platform #{match} is not supported!"
96+
end
97+
end
9298
end
9399
end

0 commit comments

Comments
 (0)