Rakefile in activity_engine-0.0.6 vs Rakefile in activity_engine-0.0.7
- old
+ new
@@ -3,25 +3,11 @@
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
-APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
-load 'rails/tasks/engine.rake'
+# I want these tasks local to the project, not in Rake's 'app' namespace
+Dir.glob('tasks/*.rake').each { |r| import r }
Bundler::GemHelper.install_tasks
-
-task :spec do
- require 'rspec/core/rake_task'
- ENV['RAILS_ENV'] = 'test'
- Rails.env = 'test'
- Rake::Task["db:drop"].invoke rescue true
- Rake::Task["db:create"].invoke
- Rake::Task['environment'].invoke
- Rake::Task['db:schema:load'].invoke
- RSpec::Core::RakeTask.new(:__spec) do |t|
- t.pattern = "./spec/**/*_spec.rb"
- end
- Rake::Task['__spec'].invoke
-end
task default: :spec