Sha256: 8a86a201db8a637c40f19334d81ca412097a671ab20041291f2d91a0b5a60c73

Contents?: true

Size: 533 Bytes

Versions: 4

Compression:

Stored size: 533 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

require 'drbqs/server/test/server'
require_relative 'definition/task_obj_definition.rb'

describe DRbQS::Test::Server do
  it "should execute as test." do
    DRbQS.define_server do |server, argv, opts|
      5.times do |i|
        server.queue.add(DRbQS::Task.new(TestCountCalc.new, :calc))
      end
    end
    server = DRbQS.create_test_server({})
    data = server.test_exec
    data.should be_an_instance_of Hash
    TestCountCalc.get.should == 5
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
drbqs-0.1.1 spec/integration_test/10_test_server_spec.rb
drbqs-0.1.0 spec/integration_test/10_test_server_spec.rb
drbqs-0.0.19 spec/integration_test/10_test_server_spec.rb
drbqs-0.0.18 spec/integration_test/10_test_server_spec.rb