if ENV['COVERAGE'] || ENV['TRAVIS'] require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/vendor/' add_filter '/spec/' end end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'sperm' # Some helpers for Enumerable. # module Enumerable def permutation? sort.to_a == (0...count).to_a end def empty? count == 0 end end