spec/spec_helper.rb in r509-0.10.0 vs spec/spec_helper.rb in r509-1.0
- old
+ new
@@ -4,18 +4,18 @@
require 'coveralls'
Coveralls.wear!
rescue LoadError
end
-$:.unshift File.expand_path("../../lib", __FILE__)
-$:.unshift File.expand_path("../", __FILE__)
+$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
+$LOAD_PATH.unshift File.expand_path("../", __FILE__)
require 'rubygems'
require 'fixtures'
require 'rspec'
require 'r509'
# exclude EC specific tests if it's unsupported
-if not R509.ec_supported?
+unless R509.ec_supported?
puts "\e[#{31}mWARNING: NOT RUNNING EC TESTS BECAUSE EC IS UNSUPPORTED ON YOUR RUBY INSTALLATION\e[0m"
R509.print_debug
RSpec.configure do |c|
c.filter_run_excluding :ec => true
end