Sha256: 422766e51d96fcf9e90e61ca9639de09f81506794903b65a10f99474c0475c9d

Contents?: true

Size: 504 Bytes

Versions: 7

Compression:

Stored size: 504 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path(File.dirname(__FILE__) + "/../lib/spec") # better stack traces this way

$context_runner = ::Spec::Runner::OptionParser.create_context_runner(ARGV, false, STDERR, STDOUT)

# If ARGV is a glob, it will actually each over each one of the matching files.
ARGV.each do |file_or_dir|
  if File.directory?(file_or_dir)
    Dir["#{file_or_dir}/**/*.rb"].each do |file| 
      require file
    end
  else
    require file_or_dir
  end
end

$context_runner.run(true)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-0.5.16 bin/spec
rspec-0.5.14 bin/spec
rspec-0.5.15 bin/spec
rspec-0.6.0 bin/spec
rspec-0.6.1 bin/spec
rspec-0.6.2 bin/spec
rspec-0.6.3 bin/spec