Sha256: f66e1e4315a681674ef36b24d473ae9612588eacf0d4b90ffe0e2f6ad167a3c9
Contents?: true
Size: 1008 Bytes
Versions: 34
Compression:
Stored size: 1008 Bytes
Contents
#!/usr/bin/env rake foreman_path = Dir['./foreman', '../foreman', '../../foreman'] foreman_path.select! { |path| File.exist?(File.join(path, 'Gemfile')) } raise 'Foreman have not been found!' unless foreman_path.any? foreman_path = File.expand_path(foreman_path.first, __dir__) # for migrations to work from 'app:db:migrate' task 'dynflow:migrate' => 'app:dynflow:migrate' task 'parameters:reset_priorities' => 'app:parameters:reset_priorities' APP_RAKEFILE = File.expand_path('Rakefile', foreman_path) load 'rails/tasks/engine.rake' Bundler::GemHelper.install_tasks require 'rake/testtask' require 'rspec/core' require 'rspec/core/rake_task' Rake::TestTask.new(test: 'app:db:test:prepare') do |t| t.libs << 'test' t.libs << File.join(foreman_path, 'lib') t.libs << File.join(foreman_path, 'test') t.pattern = 'test/**/*_test.rb' t.verbose = false end desc 'Run all specs in spec directory (excluding plugin specs)' RSpec::Core::RakeTask.new(spec: 'app:db:test:prepare') task default: :test
Version data entries
34 entries across 34 versions & 1 rubygems