Ruby version 1.9 check added to unit tests

git-svn-id: https://beef.googlecode.com/svn/trunk@1400 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-11-03 07:34:36 +00:00
parent 320271a51f
commit e32ed54ed6

View File

@@ -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