Sha256: 462ac0a5aafd463994ebbfa10e8889b6b0896bb8ee1dbe9cbb8e13fad2c93cdf

Contents?: true

Size: 684 Bytes

Versions: 9

Compression:

Stored size: 684 Bytes

Contents

require 'pione/test-helper'
require_relative 'tuple-behavior'

describe 'Pione::TupleSpace::TaskTuple' do
  before do
    domain = "A"
    data = TupleSpace::DataTuple.new(domain, "a.txt", Location["local:/home/keita/"], Time.now)

    @digest = "digest"
    @package_id = "Main"
    @rule_name = "Main"
    @inputs = [data]
    @params = Lang::ParameterSet.new(Lang::Variable.new("X") => Lang::IntegerSequence.of(1))
    @features = Lang::FeatureSequence.new
    @domain = domain
    @caller_id = "caller"

    args = [@digest, @package_id, @rule_name, @inputs, @params, @features, @domain, @caller_id]
    @tuple = TupleSpace::TaskTuple.new(*args)
  end

  behaves_like "tuple"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pione-0.5.0 test/tuple-space/spec_task-tuple.rb
pione-0.5.0.alpha.2 test/tuple-space/spec_task-tuple.rb
pione-0.5.0.alpha.1 test/tuple-space/spec_task-tuple.rb
pione-0.4.2 test/tuple-space/spec_task-tuple.rb
pione-0.4.1 test/tuple-space/spec_task-tuple.rb
pione-0.4.0 test/tuple-space/spec_task-tuple.rb
pione-0.3.2 test/tuple-space/spec_task-tuple.rb
pione-0.3.1 test/tuple-space/spec_task-tuple.rb
pione-0.3.0 test/tuple/spec_task-tuple.rb