Rakefile in closure_tree-7.2.0 vs Rakefile in closure_tree-7.3.0

- old
+ new

@@ -1,24 +1,21 @@ -begin - require 'bundler/setup' -rescue LoadError - puts 'You must `gem install bundler` and `bundle install` to run rake tasks' -end +# frozen_string_literal: true -Bundler::GemHelper.install_tasks +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' -require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) do |task| - task.pattern = 'spec/*_spec.rb' + task.pattern = 'spec/closure_tree/*_spec.rb' end -task :default => :spec +task default: :spec namespace :spec do desc 'Run all spec variants' task :all do - rake = 'bundle exec rake' + rake = 'bin/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