Sha256: 5c1384e4806f3538d74a475a7f3d3a48efa0d683af806ffb8ab1684013ef465c

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

$: << "./ext/" << "./lib/"
path = File.expand_path(File.join(File.dirname(__FILE__), "ext/ray"))
our_path = File.expand_path(File.join(File.dirname(__FILE__), "spec_runner.rb"))

unless defined? Ray
  unless RUBY_PLATFORM =~ /darwin/
    require 'ray_ext'
  else
    if File.exist? path
      system "#{path} #{our_path}"
      exit $?.exitstatus
    else
      $stderr.puts "please build ray (rake ext)"
      exit 1
    end
  end
end

def path_of(res)
  File.expand_path(File.join(File.dirname(__FILE__), "spec", "res", res))
end

require 'ray'

require 'spec'
require 'spec/autorun'
Dir["spec/**/*_spec.rb"].each { |file| load file }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ray-0.0.0.pre2 spec_runner.rb