Sha256: cfcb322a23cb3e39c2a0858b5f6367c18435ef3fdbb2ca3537b2a140355ba43c

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

require 'integration/spec_helper'
require 'system_timer'

describe 'Ruby Client' do
  include Tasks

  it 'is able to talk to a python worker' do
    result = add.delay(5,10)
    result.wait.should == 15
  end

  it 'can send tasks scheduled in the future to python workers' do
    result = add.apply_async(:args => [5,3], :eta => Time.now + 5)

    result.wait.should == 8
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rcelery-1.0.1 spec/integration/ruby_client_python_worker_spec.rb
rcelery-1.0.0 spec/integration/ruby_client_python_worker_spec.rb