Rakefile in finix-0.15 vs Rakefile in finix-0.16
- old
+ new
@@ -1,9 +1,21 @@
require 'rake'
require 'bundler/gem_tasks'
require 'rake/testtask'
+require 'rspec/core/rake_task'
+require 'logger'
+require_relative 'test/test_it'
+require_relative 'test/helper_test'
desc 'Run test suite'
Rake::TestTask.new do |t|
- # t.test_files = FileList['test/**/test_*.rb']
+ Finix::FinixTest.logger = Logger.new STDOUT
+ Finix::FinixTest.logger.level = Logger::ERROR
t.pattern ='test/**/test_*.rb'
end
+
+desc 'Run rspec suite'
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = Dir.glob('spec/**/*_spec.rb')
+end
+
+task testit: [:test, :spec]
\ No newline at end of file