1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/spec/base.rb
2010-07-04 15:54:26 +02:00

16 lines
315 B
Ruby

def is_ruby_19?
RUBY_VERSION == '1.9.1' or RUBY_VERSION == '1.9.2'
end
Encoding.default_internal = Encoding.default_external = "ASCII-8BIT" if is_ruby_19?
require 'rubygems'
require 'spec'
begin
require "ruby-debug"
rescue LoadError
# NOP, ignore
end
require File.dirname(__FILE__) + '/../lib/restclient'