Rakefile in eternity-1.0.0 vs Rakefile in eternity-1.1.0
- old
+ new
@@ -4,9 +4,14 @@
Rake::TestTask.new(:spec) do |t|
t.libs << 'spec'
t.pattern = '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'
require 'eternity'
\ No newline at end of file