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

Version Path
mspec-1.5.17 spec/spec_helper.rb
mspec-1.5.16 spec/spec_helper.rb
mspec-1.5.15 spec/spec_helper.rb
mspec-1.5.14 spec/spec_helper.rb
mspec-1.5.13 spec/spec_helper.rb
mspec-1.5.3 spec/spec_helper.rb
mspec-1.5.10 spec/spec_helper.rb
mspec-1.5.11 spec/spec_helper.rb
mspec-1.5.1 spec/spec_helper.rb
mspec-1.5.4 spec/spec_helper.rb
mspec-1.5.12 spec/spec_helper.rb
mspec-1.5.2 spec/spec_helper.rb
mspec-1.5.9 spec/spec_helper.rb
mspec-1.5.8 spec/spec_helper.rb
mspec-1.5.6 spec/spec_helper.rb
mspec-1.5.7 spec/spec_helper.rb
mspec-1.5.5 spec/spec_helper.rb