Sha256: 9d7908726cbd8a576b487789abcd8b9b36866a986ac4fc0d7811401eb5f98c56
Contents?: true
Size: 935 Bytes
Versions: 3
Compression:
Stored size: 935 Bytes
Contents
describe QME::MapReduce::Executor do before do @loader = QME::Database::Loader.new('test') if ENV['MEASURE_DIR'] @measures = Dir.glob(File.join(ENV['MEASURE_DIR'], '*')) else @measures = Dir.glob(File.join('measures', '*')) end # define custom matchers RSpec::Matchers.define :match_population do |population| match do |value| value == population end end RSpec::Matchers.define :match_denominator do |denominator| match do |value| value == denominator end end RSpec::Matchers.define :match_numerator do |numerator| match do |value| value == numerator end end RSpec::Matchers.define :match_exclusions do |exclusions| match do |value| value == exclusions end end end it 'should produce the expected results for each measure' do validate_measures(@measures,@loader) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
quality-measure-engine-1.1.5 | spec/qme/map/measures_spec.rb |
quality-measure-engine-1.1.3 | spec/qme/map/measures_spec.rb |
quality-measure-engine-1.1.2 | spec/qme/map/measures_spec.rb |