From ced4d6f9e4b9bc0d2738a8268ed481b0d93610d3 Mon Sep 17 00:00:00 2001 From: NAITOH Jun Date: Sat, 20 Jun 2015 22:51:42 +0900 Subject: [PATCH] run tests on Travis (fix) --- .travis.yml | 2 +- lib/rbpdf.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5c0f476..b71f017 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,6 @@ matrix: install: - bundle install script: - - rake test + - bundle exec rake test notifications: email: false diff --git a/lib/rbpdf.rb b/lib/rbpdf.rb index fa70594..01988cd 100755 --- a/lib/rbpdf.rb +++ b/lib/rbpdf.rb @@ -72,6 +72,7 @@ require 'core/rmagick' # Needed to run the test suite outside of a Rails environment. +require 'rubygems' if RUBY_VERSION < '1.9' # Ruby 1.8.7 require 'action_view' require 'tempfile' require 'uri'