Rakefile in smartsheet-1.0.0.beta.2 vs Rakefile in smartsheet-1.0.0
- old
+ new
@@ -1,13 +1,23 @@
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rubycritic/rake_task'
-Rake::TestTask.new(:test) do |t|
+
+Rake::TestTask.new do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
end
+
+namespace :test do
+ Rake::TestTask.new(:units) do |t|
+ t.libs << 'test'
+ t.pattern = 'test/unit/**/*_test.rb'
+ t.verbose = true
+ end
+end
+
RubyCritic::RakeTask.new
task default: :test