From e32ed54ed60420a1a11675c417d77321b72ddc69 Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Thu, 3 Nov 2011 07:34:36 +0000 Subject: [PATCH] Ruby version 1.9 check added to unit tests git-svn-id: https://beef.googlecode.com/svn/trunk@1400 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- test/unit/ts_beef.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unit/ts_beef.rb b/test/unit/ts_beef.rb index f93ae1b96..5a2910837 100644 --- a/test/unit/ts_beef.rb +++ b/test/unit/ts_beef.rb @@ -13,6 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. # + +# @note Version check to ensure BeEF is running Ruby 1.9 > +if RUBY_VERSION < '1.9' + puts "\n" + puts "Ruby version " + RUBY_VERSION + " is no longer supported. Please upgrade 1.9 or later." + puts "\n" + exit +end + begin require 'test/unit/ui/console/testrunner' rescue LoadError