Sha256: 160c0fe2da213761f0f0d7f2432cc91bc1333a4f19bb258a43d76774c793017c

Contents?: true

Size: 465 Bytes

Versions: 16

Compression:

Stored size: 465 Bytes

Contents

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

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

class ImmediateTaskQueue
  class Future
    def initialize(value)
      @value = value
    end
    
    def get
      @value
    end
  end
  
  def submit(task)
    Future.new(task.execute)
  end
end

Redcar::Resource.compute_synchronously = true

def project_search_fixture_dir
  File.dirname(__FILE__) + "/fixtures/project"
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
redcar-dev-0.12.17dev plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.16dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.15dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.14dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.13dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.12dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.11dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.10dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.9dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.8dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.7dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.6dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.4dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.3dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.1dev-java plugins/project_search/spec/spec_helper.rb
redcar-dev-0.12.0dev-java plugins/project_search/spec/spec_helper.rb