File: distribution_spec.rb

package info (click to toggle)
ruby-distribution 0.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 572 kB
  • ctags: 370
  • sloc: ruby: 4,270; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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?
      defined?(GSL).should be_true
    else
      defined?(GSL).should be_false
    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_true
    else
      defined?(Statistics2).should be_false
    end 
  end
end