Sha256: 77f6d63037e8dbd7b020361a0d6926885bf63a7b82a9c4e1ccb3873221de09c6
Contents?: true
Size: 623 Bytes
Versions: 17
Compression:
Stored size: 623 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new(:spec) do |t| t.libs << 'spec' t.libs << 'lib' t.pattern = ENV['DIR'] ? File.join(ENV['DIR'], '**', '*_spec.rb') : 'spec/**/*_spec.rb' t.verbose = false t.warning = false t.loader = nil if ENV['TEST'] ENV['TEST'], ENV['LINE'] = ENV['TEST'].split(':') if ENV['TEST'] && !ENV['LINE'] t.options = '' t.options << "--name=/#{ENV['NAME']}/ " if ENV['NAME'] t.options << "-l #{ENV['LINE']} " if ENV['LINE'] && ENV['TEST'] end task :console do require 'pry-nav' require 'asynchronic' ARGV.clear Pry.start end task default: :spec
Version data entries
17 entries across 17 versions & 1 rubygems