1 dir_path = File.dirname(__FILE__)
2 lib_path = File.expand_path(dir_path + '/../lib')
3 bin_path = File.expand_path(dir_path + '/..')
4 $:.unshift lib_path unless $:.include? lib_path
5 $:.unshift bin_path unless $:.include? bin_path
8 require 'mspec/helpers/io'
9 require 'mspec/helpers/scratch'
11 # Remove this when MRI has intelligent warnings
12 $VERBOSE = nil unless $VERBOSE
14 class MOSConfig < Hash
28 self[:target] = 'ruby'
34 config = MOSConfig.new
35 return MSpecOptions.new(config, "spec"), config
38 # Just to have an exception name output not be "Exception"
39 class MSpecExampleError < Exception