require 'rspec/core/rake_task'

desc 'Default: run specs'
task default: [:spec]

# test alias
task test: :spec

desc 'Run specs'
RSpec::Core::RakeTask.new do |t|
# mmaped_value_spec.rb causes segfault
  t.pattern = FileList['spec/**/*_spec.rb'] -
            FileList['spec/prometheus/client/mmaped_value_spec.rb'] 
  t.rspec_opts = '--require ./spec/spec_helper.rb'
end

