Sha256: 418634853e026c72dea12b03ed477c733b47491f42fd7fee11716146d48b48d3
Contents?: true
Size: 452 Bytes
Versions: 6
Compression:
Stored size: 452 Bytes
Contents
class SpecSuite def files Dir["#{dir}/../spec/**/*_spec.rb"] end def run $LOAD_PATH.unshift(File.join(dir, '..')) $LOAD_PATH.unshift(File.join(dir, '..', 'lib')) ARGV.concat ["--options", "#{dir}/spec.opts"] files.each do |file| require file end result = ::Spec::Runner::CommandLine.run exit result end def dir @dir ||= File.dirname(__FILE__) end end if $0 == __FILE__ SpecSuite.new.run end
Version data entries
6 entries across 6 versions & 1 rubygems