Sha256: 00c8ceffa8db87a749803f19874c851e052f76bafed14e872d55f1992a72603c

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

# -*- encoding: utf-8 -*-
require "bundler/gem_helper"
Bundler::GemHelper.install_tasks

require "rspec/core/rake_task"

ADAPTERS = %w(mysql postgresql sqlite3)

ADAPTERS.each do |adapter|
  desc "Run RSpec code examples for #{adapter} adapter"
  RSpec::Core::RakeTask.new(adapter => "#{adapter}:adapter")

  namespace adapter do
    task :adapter do
      ENV["ADAPTER"] = adapter
    end
  end
end

task :coverage do
  ENV["COVERAGE"] = "true"
end

task :adapter do
  ENV["ADAPTER"] = nil
end

Rake::Task[:spec].enhance do
  require "simplecov"
  require "coveralls"

  Coveralls::SimpleCov::Formatter.new.format(SimpleCov.result)
end

task default: ([:coverage] + ADAPTERS + [:adapter])

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_active_record-4.0.1 Rakefile
delayed_job_active_record-4.0.0 Rakefile
delayed_job_active_record-4.0.0.beta3 Rakefile