-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (29 loc) · 1.01 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
puts "...Rakefile"
#!/usr/bin/env rake
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = File.expand_path('../spec/**/*_spec.rb', __FILE__)
end
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'
Bundler::GemHelper.install_tasks
load 'lib/tasks/redis_processor.rake'
load 'lib/tasks/rules_tasks.rake'
task :default => :spec
# desc 'Generates a dummy app for testing'
# task :dummy_app => [:setup, :migrate]
# task :setup do
# require 'rails'
# require 'rules'
# require 'rules/generators/dummy_generator'
# dummy = File.expand_path('../spec/dummy', __FILE__)
# sh "rm -rf #{dummy}"
# MyEngine::DummyGenerator.start(
# %W(. --quiet --force --skip-bundle --old-style-hash --dummy-path=#{dummy})
# )
# end
# task :migrate do
# rakefile = File.expand_path('../spec/dummy/Rakefile', __FILE__)
# sh("rake -f #{rakefile} rules_engine:install:migrations")
# sh("rake -f #{rakefile} db:create db:migrate db:test:prepare")
# end