Sha256: 83d58b4edfe986e49c4e896c5c51be9a93f57e446ef31b70e15f67b49fff17d3

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby

if ARGV.empty?
  puts "You must provide a directory or file to run"
  exit
end

require 'find'
require File.dirname(__FILE__) + "/../lib/spec"

context_runner = Spec::Runner::ContextRunner.new(ARGV)
Spec::Runner::Context.context_runner = context_runner

ARGV.each do |file|
  Find.find(file) do |path|
    if FileTest.file?(path) and File.extname(path) == '.rb'
      require path
    end
  end
end

context_runner.run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-0.5.0 bin/spec