add rubocop and rspec to Rakefile

This commit is contained in:
Petr Korolev 2015-03-26 15:33:56 +02:00
parent f48236e47b
commit a09b6affd4

View File

@ -1,9 +1,8 @@
require "rake/testtask" require 'rubocop/rake_task'
require 'rspec/core/rake_task'
task :default => [:test] RuboCop::RakeTask.new
RSpec::Core::RakeTask.new(:rspec)
task :default => [:rubocop, :rspec]
Rake::TestTask.new do |t|
t.verbose = true
t.libs.push("demo", "test")
t.pattern = "test/**/*_test.rb"
end