Sha256: df0949ae4b1ef44374eb3c6700b5dd7053abb2a73c5fb3ee942494b3e6563572

Contents?: true

Size: 636 Bytes

Versions: 3

Compression:

Stored size: 636 Bytes

Contents

require 'rubygems'

require 'simplecov'
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
  add_filter 'spec'
end

require 'rspec'
require File.dirname(__FILE__) + '/../lib/tf-idf-similarity'

MATRIX_LIBRARY = (ENV['MATRIX_LIBRARY'] || :matrix).to_sym
puts "\n==> Running specs with #{MATRIX_LIBRARY}"

case MATRIX_LIBRARY
when :gsl
  require 'gsl'
when :narray
  require 'narray'
when :nmatrix
  require 'nmatrix'
else
  require 'matrix'
end

RSpec.configure do |c|
  if MATRIX_LIBRARY == :gsl # GSL can't initialize an empty matrix
    c.filter_run_excluding :empty_matrix => true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tf-idf-similarity-0.2.0 spec/spec_helper.rb
tf-idf-similarity-0.1.6 spec/spec_helper.rb
tf-idf-similarity-0.1.5 spec/spec_helper.rb