diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-13 00:19:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-13 00:19:12 +0200 |
commit | 8724b1424c81e62dd94ad71d39c7f73d7a33f2c8 (patch) | |
tree | b4e1c17f6823853b0cacd784f7a8095710fd7044 /spec/link_spec.rb | |
parent | 74d45762846ea7e6ac09f65fb31672b822f7a349 (diff) | |
download | edoors-ruby-8724b1424c81e62dd94ad71d39c7f73d7a33f2c8.zip edoors-ruby-8724b1424c81e62dd94ad71d39c7f73d7a33f2c8.tar.gz |
iotas release 0.0.5v0.0.5
Diffstat (limited to 'spec/link_spec.rb')
-rw-r--r-- | spec/link_spec.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/spec/link_spec.rb b/spec/link_spec.rb deleted file mode 100644 index 6120677..0000000 --- a/spec/link_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# - -require 'spec_helper' -# -describe Iotas::Link do - # - it "from particle data" do - @spin = Iotas::Spin.new 'dom0' - p = @spin.require_p Iotas::Particle - p.set_data Iotas::LNK_SRC, 'input1' - p.set_data Iotas::LNK_DSTS, 'concat1?follow,output1' - p.set_data Iotas::LNK_FIELDS, 'f0,f2' - p.set_data Iotas::LNK_CONDF, 'f0,f1,f2' - p.set_data Iotas::LNK_CONDV, 'v0v1v2' - lnk = Iotas::Link.from_particle_data p - lnk.src.should eql 'input1' - lnk.dsts.should eql 'concat1?follow,output1' - lnk.fields.should eql 'f0,f2' - lnk.cond_fields.should eql 'f0,f1,f2' - lnk.cond_value.should eql 'v0v1v2' - end - # - it "link->json->link" do - link = Iotas::Link.new 'input1', 'concat1?follow,output1', 'f0,f2', 'f0,f1,f2', 'v0v1v2' - lnk = Iotas::Link.json_create( JSON.load( JSON.generate(link) ) ) - link.src.should eql lnk.src - link.dsts.should eql lnk.dsts - link.fields.should eql lnk.fields - link.cond_fields.should eql lnk.cond_fields - link.cond_value.should eql lnk.cond_value - JSON.generate(link).should eql JSON.generate(lnk) - end - # -end -# -# EOF |