lint Rakefile

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-14 10:29:31 +02:00
parent 867242eb25
commit b3896a77a2

View file

@ -15,7 +15,7 @@ desc 'Run robocop linter'
task lint: [:rubocop] task lint: [:rubocop]
# run tests # run tests
task :default => :test task default: :test
Rake::TestTask.new do |t| Rake::TestTask.new do |t|
t.libs << 'test' t.libs << 'test'
t.pattern = 'test/**/*_test.rb' t.pattern = 'test/**/*_test.rb'
@ -28,7 +28,7 @@ namespace :test do
task :isolated do task :isolated do
Dir.glob('test/**/*_test.rb').all? do |file| Dir.glob('test/**/*_test.rb').all? do |file|
sh(Gem.ruby, '-w', '-Ilib:test', file) sh(Gem.ruby, '-w', '-Ilib:test', file)
end or raise 'Failures' end or fail 'Failures'
end end
task :resources do task :resources do