spec/spec_helper.rb in csl-1.0.2 vs spec/spec_helper.rb in csl-1.1.0
- old
+ new
@@ -1,10 +1,19 @@
begin
- if RUBY_VERSION < '1.9'
- # require 'debug'
- # Debugger.start
+ require 'simplecov'
+ require 'coveralls' if ENV['CI']
+rescue LoadError
+ # ignore
+end
+
+begin
+ case
+ when RUBY_PLATFORM < 'java'
+ require 'debug'
+ Debugger.start
+ when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
+ require 'rubinius/debugger'
else
- require 'simplecov'
require 'debugger'
end
rescue LoadError
# ignore
end