-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathRakefile
More file actions
41 lines (29 loc) · 898 Bytes
/
Rakefile
File metadata and controls
41 lines (29 loc) · 898 Bytes
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
39
40
41
# === boot ===
begin
require "bundler/setup"
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
# === application ===
require "rails"
require "combustion"
# require "active_record/railtie"
# Bundler.require :default, Rails.env
# === Rakefile ===
task :environment do
Combustion::Application.path = 'spec/support/rails'
Combustion::Application.initialize!
# # Reset migrations paths so we can keep the migrations in the project root,
# # not the Rails root
# migrations_paths = ["db/migrate"]
# ActiveRecord::Tasks::DatabaseTasks.migrations_paths = migrations_paths
# ActiveRecord::Migrator.migrations_paths = migrations_paths
end
require "rspec/core/rake_task"
Combustion::Application.load_tasks
task(:default).clear
task(:spec).clear
RSpec::Core::RakeTask.new(:spec) do |t|
t.verbose = false
end
task default: [:spec]