Sha256: 934a8133abbb66dc286b333ceb7b1d5e250a490c749d64cf059f52920b53b0ed
Contents?: true
Size: 995 Bytes
Versions: 6
Compression:
Stored size: 995 Bytes
Contents
dir_path = File.dirname(__FILE__) lib_path = File.expand_path(dir_path + '/../lib') bin_path = File.expand_path(dir_path + '/..') $:.unshift lib_path unless $:.include? lib_path $:.unshift bin_path unless $:.include? bin_path require 'pp' require 'mspec/helpers/io' require 'mspec/helpers/scratch' # Remove this when MRI has intelligent warnings $VERBOSE = nil unless $VERBOSE class MOSConfig < Hash def initialize self[:includes] = [] self[:requires] = [] self[:flags] = [] self[:options] = [] self[:includes] = [] self[:excludes] = [] self[:patterns] = [] self[:xpatterns] = [] self[:tags] = [] self[:xtags] = [] self[:atags] = [] self[:astrings] = [] self[:target] = 'ruby' self[:command] = nil end end def new_option config = MOSConfig.new return MSpecOptions.new(config, "spec"), config end # Just to have an exception name output not be "Exception" class MSpecExampleError < Exception end
Version data entries
6 entries across 6 versions & 1 rubygems