Sha256: a03d19c573ca4cabcdf60cb3f7fd3f0d1c1b54123aaff1a7a7a2ea7841e5e58c

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

$:.unshift(File.dirname(__FILE__)+"/../lib")
begin
  require 'simplecov'
  SimpleCov.start do
    add_filter "/spec/"
    add_group "Libraries", "lib"
  end
rescue LoadError
end
require 'rspec'
require 'distribution'

module ExampleWithGSL
  def it_only_with_gsl(name,&block)
    it(name) do
      if Distribution.has_gsl?
        instance_eval(&block)
      else
        pending("Requires GSL")  
      end
    end
  end
  
  def it_only_with_java(name,&block)
    it(name) do
      if Distribution.has_java?
        instance_eval(&block)
      else
        pending("Requires Java")  
      end
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribution-0.7.1 spec/spec_helper.rb
distribution-0.7.0 spec/spec_helper.rb