Sha256: d2fb7f0275f9211997e276c5526829a2f93d8e597562ff53c8727d5a0e523aa1

Contents?: true

Size: 354 Bytes

Versions: 4

Compression:

Stored size: 354 Bytes

Contents

require 'bundler'
require 'rspec/core/rake_task'

Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)

def orm_test(orm)
  RSpec::Core::RakeTask.new(orm) do |task|
    task.pattern = "./spec/{unit,integration/#{orm}}/{,/*/**}/*_spec.rb"
  end
end

namespace :spec do
  orm_test 'active_record'
  orm_test 'mongoid'
end

task default: :spec

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ta_by_star-4.1.0 Rakefile
ta_by_star-4.0.0 Rakefile
by_star-4.0.0 Rakefile
by_star-3.0.0 Rakefile