Sha256: cd560ea7907e6639d364aabf7370fe22f41455fdb4d804c372a6710022f338b6
Contents?: true
Size: 771 Bytes
Versions: 13
Compression:
Stored size: 771 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList['test/**/*_test.rb'] end Rake::TestTask.new(:run_examples) do |t| exec_ole = RbConfig::CONFIG['host_os'].downcase =~ %r{mingw|mswin|cygwin} t.libs << 'examples' t.libs << 'lib' examples = FileList['examples/**/*_example.rb'] if exec_ole t.test_files = examples - examples.grep(%r{troubles/}i) else t.test_files = examples - examples.grep(%r{troubles/|enterprise_ole_example}i) end end Rake::TestTask.new(:run_trouble_examples) do |t| t.libs << 'examples' t.libs << 'lib' examples = FileList['examples/**/*_example.rb'] t.test_files = examples.grep(%r{trouble}i) end task :default => :test
Version data entries
13 entries across 13 versions & 1 rubygems