Browse Source

Add some "gem install" tests (from the most popular gems list)

Tianon Gravi 11 years ago
parent
commit
c304f0f6ea
3 changed files with 22 additions and 0 deletions
  1. 1 0
      test/config.sh
  2. 20 0
      test/tests/ruby-gems/container.sh
  3. 1 0
      test/tests/ruby-gems/run.sh

+ 1 - 0
test/config.sh

@@ -18,6 +18,7 @@ declare -A imageTests=(
 		python-zlib
 	'
 	[ruby]='
+		ruby-gems
 		ruby-standard-libs
 	'
 # example onbuild

+ 20 - 0
test/tests/ruby-gems/container.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+# list taken from https://rubygems.org/stats
+gems=(
+	thor
+	rake
+	rails
+	rack
+	activesupport
+	activerecord
+	actionpack
+	json
+	actionmailer
+	activeresource
+)
+
+for gem in "${gems[@]}"; do
+	gem install "$gem"
+done

+ 1 - 0
test/tests/ruby-gems/run.sh

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