summaryrefslogtreecommitdiff
path: root/test/rubygems/test_project_sanity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_project_sanity.rb')
-rw-r--r--test/rubygems/test_project_sanity.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rubygems/test_project_sanity.rb b/test/rubygems/test_project_sanity.rb
index 38c2541df6..4324c997bd 100644
--- a/test/rubygems/test_project_sanity.rb
+++ b/test/rubygems/test_project_sanity.rb
@@ -17,4 +17,16 @@ class TestProjectSanity < Gem::TestCase
assert status.success?, err
end
+
+ def test_require_and_use_rubygems_version
+ err, status = Open3.capture2e(
+ *ruby_with_rubygems_in_load_path,
+ "--disable-gems",
+ "-rrubygems/version",
+ "-e",
+ "Gem::Version.new('2.7.0.preview1') >= Gem::Version.new(RUBY_VERSION)"
+ )
+
+ assert status.success?, err
+ end
end