summaryrefslogtreecommitdiffstats
path: root/spec/link_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:11:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-10 11:11:28 +0200
commit6553912a6dff9b2c8bd3f06cb5f10488eef2c18c (patch)
tree804cbb720c993afd5453ea4a8086b264e22382fe /spec/link_spec.rb
parent74d45762846ea7e6ac09f65fb31672b822f7a349 (diff)
downloadedoors-ruby-6553912a6dff9b2c8bd3f06cb5f10488eef2c18c.zip
edoors-ruby-6553912a6dff9b2c8bd3f06cb5f10488eef2c18c.tar.gz
project iotas->edoors-ruby, module Iotas->Edoors
Diffstat (limited to 'spec/link_spec.rb')
-rw-r--r--spec/link_spec.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/link_spec.rb b/spec/link_spec.rb
index 6120677..0de1d93 100644
--- a/spec/link_spec.rb
+++ b/spec/link_spec.rb
@@ -4,17 +4,17 @@
require 'spec_helper'
#
-describe Iotas::Link do
+describe Edoors::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
+ @spin = Edoors::Spin.new 'dom0'
+ p = @spin.require_p Edoors::Particle
+ p.set_data Edoors::LNK_SRC, 'input1'
+ p.set_data Edoors::LNK_DSTS, 'concat1?follow,output1'
+ p.set_data Edoors::LNK_FIELDS, 'f0,f2'
+ p.set_data Edoors::LNK_CONDF, 'f0,f1,f2'
+ p.set_data Edoors::LNK_CONDV, 'v0v1v2'
+ lnk = Edoors::Link.from_particle_data p
lnk.src.should eql 'input1'
lnk.dsts.should eql 'concat1?follow,output1'
lnk.fields.should eql 'f0,f2'
@@ -23,8 +23,8 @@ describe Iotas::Link do
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 = Edoors::Link.new 'input1', 'concat1?follow,output1', 'f0,f2', 'f0,f1,f2', 'v0v1v2'
+ lnk = Edoors::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