Sha256: 6f77bb4e5de3cc72c0a9fbe0a4385d5f81c6682a2200d10f6262fb2df7ec1156

Contents?: true

Size: 902 Bytes

Versions: 319

Compression:

Stored size: 902 Bytes

Contents

spec_defaults = lambda do |spec|
  spec.pattern    = 'spec/**/*_spec.rb'
  spec.libs      << 'lib' << 'spec'
  spec.spec_opts << '--options' << 'spec/spec.opts'
end

begin
  require 'spec/rake/spectask'

  Spec::Rake::SpecTask.new(:spec, &spec_defaults)
rescue LoadError
  task :spec do
    abort 'rspec is not available. In order to run spec, you must: gem install rspec'
  end
end

begin
  require 'rcov'
  require 'spec/rake/verify_rcov'

  Spec::Rake::SpecTask.new(:rcov) do |rcov|
    spec_defaults.call(rcov)
    rcov.rcov      = true
    rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
  end

  RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
    rcov.threshold = 100
  end
rescue LoadError
  %w[ rcov verify_rcov ].each do |name|
    task name do
      abort "rcov is not available. In order to run #{name}, you must: gem install rcov"
    end
  end
end

task :default => :spec

Version data entries

319 entries across 318 versions & 58 rubygems

Version Path
sbf-dm-sqlite-adapter-1.4.0 tasks/spec.rake
sbf-dm-sqlite-adapter-1.3.0 tasks/spec.rake
sbf-dm-sqlite-adapter-1.3.0.beta tasks/spec.rake
ardm-types-1.2.3 tasks/spec.rake
ardm-migrations-1.3.0 tasks/spec.rake
ardm-mysql-adapter-1.2.1 tasks/spec.rake
ardm-migrations-1.2.1 tasks/spec.rake
ardm-sqlite-adapter-1.2.0 tasks/spec.rake
ardm-is-state_machine-1.2.0 tasks/spec.rake
ardm-active_model-1.3.0 tasks/spec.rake
ardm-active_model-1.2.0 tasks/spec.rake
ardm-aggregates-1.2.0 tasks/spec.rake
ardm-mysql-adapter-1.2.0 tasks/spec.rake
ardm-serializer-1.2.2 tasks/spec.rake
ardm-sweatshop-1.2.0 tasks/spec.rake
ardm-timestamps-1.2.0 tasks/spec.rake
ardm-transactions-1.2.0 tasks/spec.rake
ardm-validations-1.2.0 tasks/spec.rake
ardm-migrations-1.2.0 tasks/spec.rake
ardm-types-1.2.2 tasks/spec.rake