diff --git a/Gemfile b/Gemfile index 4048f516..8319b850 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,7 @@ group :test do gem 'em-synchrony', '~> 0.2', :require => ['em-synchrony', 'em-synchrony/em-http'], :platforms => :ruby_19 gem 'excon', '~> 0.6' gem 'patron', '~> 0.4', :platforms => :ruby - gem 'turn', :require => false + gem 'leftright', :require => false gem 'typhoeus', '~> 0.2', :platforms => :ruby gem 'webmock' # ActiveSupport::JSON will be used in ruby 1.8 and Yajl in 1.9; this is to test against both adapters @@ -19,6 +19,7 @@ end platforms :jruby do gem 'jruby-openssl', '~> 0.7' + gem 'ffi-ncurses' end gemspec diff --git a/test/helper.rb b/test/helper.rb index 79276f24..40200cd2 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,6 +1,13 @@ require 'rubygems' require 'test/unit' -require 'turn' + +if ENV['LEFTRIGHT'] + begin + require 'leftright' + rescue LoadError + puts "Run `gem install leftright` to install leftright." + end +end unless $LOAD_PATH.include? 'lib' $LOAD_PATH.unshift(File.dirname(__FILE__))