Sha256: 352eb002133e628f48428b9b818c099a3dd9bd2e49d53c72393d24612a3f4ee1

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)+"/spec_helper.rb")
describe Distribution do
  it "should respond to has_gsl?" do
    lambda {Distribution.has_gsl?}.should_not raise_exception
    if Distribution.has_gsl?
      expect(defined?(GSL)).to be
    else
      defined?(GSL).should be_nil
    end 
  end
  it "should respond to has_statistics2?" do
    lambda {Distribution.has_statistics2?}.should_not raise_exception
    if Distribution.has_statistics2?
      defined?(Statistics2).should be
    else
      defined?(Statistics2).should be_nil
    end 
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribution-0.7.3 spec/distribution_spec.rb
distribution-0.7.2 spec/distribution_spec.rb