Sha256: 4f1495b4e1fde504f06be90cae3500ee321ef9737332c526b3b4dac06dac3279
Contents?: true
Size: 801 Bytes
Versions: 12
Compression:
Stored size: 801 Bytes
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end Bundler::GemHelper.install_tasks require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = 'spec/*_spec.rb' end task :default => :spec namespace :spec do desc 'Run all spec variants' task :all do rake = 'bundle exec rake' fail unless system("#{rake} spec:generators") [['', ''], ['db_prefix_', ''], ['', '_db_suffix'], ['abc_', '_123']].each do |prefix, suffix| env = "DB_PREFIX=#{prefix} DB_SUFFIX=#{suffix}" fail unless system("#{rake} spec #{env}") end end desc 'Run generator specs' RSpec::Core::RakeTask.new(:generators) do |task| task.pattern = 'spec/generators/*_spec.rb' end end
Version data entries
12 entries across 12 versions & 1 rubygems