Sha256: ceb4c0072662bceab0b172fd54c41c7f3c3da98d323a365e11a297573c9d7edc
Contents?: true
Size: 1.03 KB
Versions: 17
Compression:
Stored size: 1.03 KB
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 self[:ltags] = [] self[:files] = [] end end def new_option config = MOSConfig.new return MSpecOptions.new("spec", 20, config), config end # Just to have an exception name output not be "Exception" class MSpecExampleError < Exception end
Version data entries
17 entries across 17 versions & 1 rubygems