Sha256: c75cedb92be163da469a09c366b99b616776fdff43a4d9044336f58116e36b5b

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 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 & 1 rubygems

Version Path
by_star-4.0.1 Rakefile
by_star-2.2.1 Rakefile
by_star-2.2.0 Rakefile
by_star-2.2.0.rc1 Rakefile