Sha256: bbce1b3645b8537c28773e5b20e30f79355ef319c41bbdabd0168aa785bbf690

Contents?: true

Size: 448 Bytes

Versions: 17

Compression:

Stored size: 448 Bytes

Contents

$:.push File.join(File.dirname(__FILE__), '..', '..', '..', 'lib')

require 'redcar'
Redcar.environment = :test
Redcar.load

class QuickTask < Redcar::Task
  def initialize(id=nil)
    @id = id
  end
  
  def execute
    $started_tasks << @id
    :hiho
  end
  
  def inspect
    "<#{self.class} #{@id}>"
  end
end

class BlockingTask < QuickTask
  def execute
    $started_tasks << @id
    loop { break if java.lang.Thread.interrupted }
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
redcar-0.5.2dev plugins/core/spec/spec_helper.rb
redcar-0.5.1dev plugins/core/spec/spec_helper.rb
redcar-0.4.1 plugins/core/spec/spec_helper.rb
redcar-0.4 plugins/core/spec/spec_helper.rb
redcar-0.3.10.1dev plugins/core/spec/spec_helper.rb
redcar-0.3.10.0dev plugins/core/spec/spec_helper.rb
redcar-0.3.9 plugins/core/spec/spec_helper.rb
redcar-0.3.9.0dev plugins/core/spec/spec_helper.rb
redcar-0.3.8.4 plugins/core/spec/spec_helper.rb
redcar-0.3.8.3 plugins/core/spec/spec_helper.rb
redcar-0.3.8.2 plugins/core/spec/spec_helper.rb
redcar-0.3.8.1 plugins/core/spec/spec_helper.rb
redcar-0.3.8 plugins/core/spec/spec_helper.rb
redcar-0.3.7.1 plugins/core/spec/spec_helper.rb
redcar-0.3.7 plugins/core/spec/spec_helper.rb
redcar-0.3.6 plugins/core/spec/spec_helper.rb
redcar-0.3.5 plugins/core/spec/spec_helper.rb