Sha256: c5ae336f33e2cd372cb837069241fcd4ea58188cf695437b4c24b0bf7cfaed21
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 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 :numo require 'numo/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tf-idf-similarity-0.3.0 | spec/spec_helper.rb |