features/support/env.rb in csl-1.0.2 vs features/support/env.rb in csl-1.1.0

- old
+ new

@@ -1,8 +1,22 @@ begin require 'simplecov' - require 'debugger' + require 'coveralls' if ENV['CI'] rescue LoadError # ignore end -require 'csl' \ No newline at end of file +begin + case + when RUBY_PLATFORM < 'java' + require 'debug' + Debugger.start + when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' + require 'rubinius/debugger' + else + require 'debugger' + end +rescue LoadError + # ignore +end + +require 'csl'