aboutsummaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/install_additional_ruby.sh13
-rw-r--r--test/ruby/scenarios.json11
2 files changed, 24 insertions, 0 deletions
diff --git a/test/ruby/install_additional_ruby.sh b/test/ruby/install_additional_ruby.sh
new file mode 100644
index 0000000..3e76159
--- /dev/null
+++ b/test/ruby/install_additional_ruby.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "ruby version 3.1.2 installed as default" ruby -v | grep 3.1.2
+check "ruby version 2.5.9 installed" rvm list | grep 2.5.9
+check "ruby version 3.0.4 installed" rvm list | grep 3.0.4
+
+# Report result
+reportResults
diff --git a/test/ruby/scenarios.json b/test/ruby/scenarios.json
new file mode 100644
index 0000000..9f88d9e
--- /dev/null
+++ b/test/ruby/scenarios.json
@@ -0,0 +1,11 @@
+{
+ "install_additional_ruby": {
+ "image": "ubuntu:focal",
+ "features": {
+ "ruby": {
+ "version": "3.1.2",
+ "additionalVersions": "2.5,3.0.4"
+ }
+ }
+ }
+} \ No newline at end of file