Skip to content

Commit bf714bb

Browse files
committed
make sure and definie the minimum_mri_version constraint
1 parent 169d800 commit bf714bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/support/constraints.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ def require_local_tls
1717
end
1818
end
1919

20+
def minimum_mri_version(version)
21+
require_mri
22+
23+
before(:all) do
24+
if RUBY_VERSION < version
25+
skip "Ruby #{version} or greater is required"
26+
end
27+
end
28+
end
29+
2030
def forbid_x509_auth
2131
before(:all) do
2232
skip 'X.509 auth not allowed' if SpecConfig.instance.x509_auth?

0 commit comments

Comments
 (0)