forked from trailblazer/cells
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (23 loc) · 896 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
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
desc 'Default: run unit tests.'
task :default => :test
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.pattern = 'test/*_test.rb'
test.verbose = true
# Ruby built-in warnings contain way too much noise to be useful. Consider turning them on again when the following issues are accepted in ruby:
# * https://bugs.ruby-lang.org/issues/10967 (remove warning: private attribute?)
# * https://bugs.ruby-lang.org/issues/12299 (customized warning handling)
test.warning = false
end
# Rake::TestTask.new(:rails) do |test|
# test.libs << 'test/rails'
# test.test_files = FileList['test/rails4.2/*_test.rb']
# test.verbose = true
# end
# rails_task = Rake::Task["rails"]
# test_task = Rake::Task["test"]
# default_task.enhance { test_task.invoke }
# default_task.enhance { rails_task.invoke }