Sha256: 36e8d52d4e60b15fbaaee07fda8baddd6550b04fd3f2ef57ac7b2312b90bed32

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

class SpecSuite
  def files
    dir = File.dirname(__FILE__)
    Dir["#{dir}/../spec/**/*_spec.rb"]
  end

  def run
    basedir = File.join(File.dirname(__FILE__), '..')
    libdir  = File.join(basedir, 'lib')
    specdir = File.join(basedir, 'spec')

    $LOAD_PATH.unshift(basedir)
    $LOAD_PATH.unshift(libdir)
    $LOAD_PATH.unshift(specdir)

    ARGV.concat ["--options", "#{specdir}/spec.opts"]

    files.each do |file|
      require file
    end
    result = ::Spec::Runner::CommandLine.run
    exit result
  end
end

if $0 == __FILE__
  SpecSuite.new.run
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
engine-assets-0.3.0 spec/spec_suite.rb
engine-assets-0.2.1 spec/spec_suite.rb
engine-assets-0.2.0 spec/spec_suite.rb
engine-assets-0.1.0 spec/spec_suite.rb