lib/micronaut.rb in spicycode-micronaut-0.0.4 vs lib/micronaut.rb in spicycode-micronaut-0.0.5
- old
+ new
@@ -1,9 +1,9 @@
require 'micronaut/mocking/with_mocha'
require 'micronaut/matchers'
require 'micronaut/expectations'
-require 'micronaut/example_world'
+require 'micronaut/world'
require 'micronaut/runner'
require 'micronaut/runner_options'
require 'micronaut/behaviour_group_class_methods'
require 'micronaut/behaviour_group'
require 'micronaut/extensions/kernel'
@@ -22,21 +22,7 @@
__FILE__
end
# './lib' in project dir, or '/usr/local/blahblah' if installed
MICRONAUT_DIR = File.expand_path(File.dirname(File.dirname(file)))
-
- def self.filter_backtrace(backtrace)
- return ["No backtrace"] unless backtrace
-
- new_backtrace = []
- backtrace.each_with_index do |line, index|
- break if line.rindex(MICRONAUT_DIR, 0)
- new_backtrace << line
- end
-
- new_backtrace = backtrace.reject { |line| line.rindex(MICRONAUT_DIR, 0) } if new_backtrace.empty?
- new_backtrace = backtrace.dup if new_backtrace.empty?
- new_backtrace
- end
end
\ No newline at end of file