Sha256: 86862cabe2b745c753db6cc1a591b79ea03789ca6ff0a5e4497e60a05c1e18f2
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require 'rubygems' require 'rake/testtask' require 'bundler' require 'bundler/gem_tasks' require 'bundler/setup' Bundler.require(:default, :test) task :default => [:spec] run_spec = proc do |backend| begin ENV['MESSAGE_BUS_BACKEND'] = backend sh "#{FileUtils::RUBY} -e \"ARGV.each{|f| load f}\" #{Dir['spec/**/*_spec.rb'].to_a.join(' ')}" ensure ENV.delete('MESSAGE_BUS_BACKEND') end end task :spec => [:spec_redis, :spec_postgres] task :spec_redis do run_spec.call('redis') end task :spec_postgres do run_spec.call('postgres') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
message_bus-2.0.0.beta.4 | Rakefile |
message_bus-2.0.0.beta.3 | Rakefile |