forked from yhirano55/approval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (32 loc) · 755 Bytes
/
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
require "bundler"
require "rake"
Bundler.setup
Bundler::GemHelper.install_tasks
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: :spec
desc "Creates a test rails app for the specs to run against"
task :setup do
require "rails/version"
system <<-COMMAND
bundle exec rails new tmp/rails-#{Rails::VERSION::STRING} \
-m spec/support/rails_template.rb \
--skip-bundle \
--skip-spring \
--skip-listen \
--skip-turbolinks \
--skip-bootsnap \
--skip-test \
--skip-git \
--skip-yarn \
--skip-puma \
--skip-action-mailer \
--skip-action-cable
COMMAND
end
namespace :tmp do
task :clear do
require "fileutils"
FileUtils.rm_r("tmp")
end
end