Sha256: 2bf7cd6dd7680378100f384c7122214e0a6c1761ceb678d9d0a91cf798211e49
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe DRbQS::Task do it "should not set hook" do task = DRbQS::Task.new([1, 2, 3], :size) task.hook.should be_nil end it "should set hook" do task = DRbQS::Task.new([1, 2, 3], :size) do |server, ret| p ret end task.hook.should be_an_instance_of Proc end it "should have same targets" do task1 = DRbQS::Task.new([1, 2, 3], :concat, [3, 4, 5]) task2 = DRbQS::Task.new([1, 2, 3], :concat, [3, 4, 5]) task1.same_target?(task2).should be_true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
drbqs-0.0.8 | spec/task_spec.rb |
drbqs-0.0.7 | spec/task_spec.rb |
drbqs-0.0.6 | spec/task_spec.rb |