examples/example_helper.rb in astrails-safe-0.1.6 vs examples/example_helper.rb in astrails-safe-0.1.7

- old
+ new

@@ -1,11 +1,12 @@ require 'rubygems' require 'micronaut' require 'ruby-debug' +SAFE_ROOT = File.dirname(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.dirname(__FILE__)) -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) +$LOAD_PATH.unshift(File.join(SAFE_ROOT, 'lib')) require 'astrails/safe' def not_in_editor? !(ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM')) @@ -13,7 +14,6 @@ Micronaut.configure do |c| c.color_enabled = not_in_editor? c.filter_run :focused => true c.mock_with :rr -end - +end \ No newline at end of file