Browse Source

Switch ruby-hello-world test to use the common "run-ruby-in-container.sh" helper

Tianon Gravi 10 years ago
parent
commit
96a402b28e

+ 0 - 0
test/tests/ruby-hello-world/hello-world.rb → test/tests/ruby-hello-world/container.rb


+ 0 - 8
test/tests/ruby-hello-world/run.sh

@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-
-image="$1"
-dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
-dirContainer='/usr/src/ruby'
-
-docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" ruby hello-world.rb

+ 1 - 0
test/tests/ruby-hello-world/run.sh

@@ -0,0 +1 @@
+../run-ruby-in-container.sh