Sha256: 23ad42fef701784c9a3190d16c657387f4a853beb80c4a1e7092347cc9ad6ad2
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
# desc "Explaing what task does" begin require 'spec' require 'spec/rake/spectask' namespace :spec do desc 'run unit core testing' Spec::Rake::SpecTask.new(:unit) do |t| spec_dir = File.join(File.dirname(__FILE__), '..', 'spec') t.spec_opts = File.read(File.join(spec_dir, 'spec.opts')).split t.spec_files = FileList[File.join(spec_dir, 'unit', '**', '*_spec.rb')] end end rescue LoadError warn "Rspec is not installed. Please install Rspec with gems and --pre" end namespace :test do desc "run test" Rake::TestTask.new(:unit) do |t| t.libs << 'lib' t.pattern = 'test/*_test.rb' t.verbose = true end end
Version data entries
6 entries across 6 versions & 1 rubygems