Sha256: 9b86cbdc338fe562e4fa6276a0dac777f0c4e3fcbafb7afffd7c45ffe1287427

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

require "rubygems"
require "spec"

class CoreExampleSuite
  def run
    options = ::Spec::Runner::OptionParser.new.parse(ARGV.dup, STDERR, STDOUT, false)
    options.configure
    $behaviour_runner = options.create_behaviour_runner

    require_specs

    puts "Running Rspec Example Suite"
    $behaviour_runner.run(ARGV, false)
  end

  def require_specs
    exclusions = []
    exclusions << "rspec/"
    exclusions << "test_unit/"

    Dir["#{File.dirname(__FILE__)}/**/*_example.rb"].each do |file|
      unless exclusions.any? {|match| file.include?(match)}
        require file
      end
    end
  end
end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rr-0.3.10 examples/core_example_suite.rb
rr-0.3.11 examples/core_example_suite.rb