Sha256: 82337609c99744b80242b2c94465a148e7147342a3b39a7baca9b2ed3cfcba9e
Contents?: true
Size: 695 Bytes
Versions: 2
Compression:
Stored size: 695 Bytes
Contents
require 'spec_helper.rb' describe Rackjour::Worker do before :all do @worker = Rackjour::Worker.new end it 'should respond to mdns' do found = [] begin timeout 2 do DNSSD.browse! '_druby._tcp' do |r| found << r end end rescue TimeoutError end found.map(&:name).should include 'rackjour_worker' end it 'should be setup' do end it 'should accept jobs via drb' do drb_client = DRbObject.new_with_uri("druby://localhost:#{WORKER_PORT}") port = drb_client.add_job('job_id', 'Rack::SomeRackApp') port.should be_instance_of Fixnum end it 'should receive requests for setup jobs and return' do end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackjour-0.1.8 | vendor/gems/gems/rackjour-0.1.5/spec/rackjour_worker_spec.rb |
rackjour-0.1.8 | spec/rackjour_worker_spec.rb |