Rakefile in win32-taskscheduler-1.0.2 vs Rakefile in win32-taskscheduler-1.0.9
- old
+ new
@@ -1,8 +1,9 @@
require 'rake'
require 'rake/clean'
require 'rake/testtask'
+require 'rspec/core/rake_task'
CLEAN.include("**/*.gem", "**/*.rbc")
namespace 'gem' do
desc 'Build the win32-taskscheduler gem'
@@ -20,9 +21,13 @@
end
desc 'Run the example code'
task :example do
ruby '-Iib examples/taskscheduler_example.rb'
+end
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList["spec/**/*_spec.rb", "spec/**/**/*_spec.rb"].to_a
end
desc 'Run the test suite for the win32-taskscheduler library'
Rake::TestTask.new do |t|
t.verbose = true