Sha256: d3266df95c800e5a35beff72925ae9c0463d5df05da007ebd2eb66befb4d016c

Contents?: true

Size: 849 Bytes

Versions: 9

Compression:

Stored size: 849 Bytes

Contents

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]     = []
    self[:launch]    = []
  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

9 entries across 9 versions & 1 rubygems

Version Path
mspec-1.9.1 spec/spec_helper.rb
mspec-1.9.0 spec/spec_helper.rb
mspec-1.8.0 spec/spec_helper.rb
mspec-1.7.0 spec/spec_helper.rb
mspec-1.6.0 spec/spec_helper.rb
mspec-1.5.21 spec/spec_helper.rb
mspec-1.5.20 spec/spec_helper.rb
mspec-1.5.19 spec/spec_helper.rb
mspec-1.5.18 spec/spec_helper.rb