Sha256: f0a168471b5615faecebf27b4a633ab8a39b93a1beee019269dc185765d58d5b

Contents?: true

Size: 702 Bytes

Versions: 2

Compression:

Stored size: 702 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

namespace :spec do
  desc "Run tests with sqlite3 adapter"
  task :sqlite do
    ENV["DB_ADAPTER"] = "sqlite"
    Rake::Task["spec"].execute
  end

  desc "Run tests with mysql2 adapter"
  task :mysql do
    ENV["DB_ADAPTER"] = "mysql"
    Rake::Task["spec"].execute
  end

  desc "Run tests with postgresql adapter"
  task :postgres do
    ENV["DB_ADAPTER"] = "postgres"
    Rake::Task["spec"].execute
  end

  desc "Run tests with all adapters"
  task :all do
    Rake::Task["spec:sqlite"].execute
    Rake::Task["spec:mysql"].execute
    Rake::Task["spec:postgres"].execute
  end
end

task default: :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
boolean_timestamp-0.2.1 Rakefile
boolean_timestamp-0.2.0 Rakefile