Thrift-2137:Ruby test lib fails jenkins build #864
Client: ruby test
Patch: jfarrell

Updates test suite to include needed dependencies and run via bundler.
diff --git a/test/rb/Makefile.am b/test/rb/Makefile.am
index 58b11f2..9cdd99b 100644
--- a/test/rb/Makefile.am
+++ b/test/rb/Makefile.am
@@ -24,5 +24,8 @@
 	$(THRIFT) --gen rb ../SmallTest.thrift
 
 check: stubs
-	$(RUBY) -I. test_suite.rb
+if HAVE_BUNDLER
+	$(BUNDLER) install
+	$(BUNDLER) exec $(RUBY) -I. test_suite.rb
+endif