diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 09:31:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-10 09:31:26 +0200 |
commit | 6886fa096d832b0682eafe631922694653384994 (patch) | |
tree | b224ac22372483404305eecbe99528ae2b1b94cf /spec/link_spec.rb | |
parent | 274411458b30ba08a9e0adca0a0f5820e9a8648f (diff) | |
download | edoors-ruby-6886fa096d832b0682eafe631922694653384994.zip edoors-ruby-6886fa096d832b0682eafe631922694653384994.tar.gz |
split specs
Diffstat (limited to 'spec/link_spec.rb')
-rw-r--r-- | spec/link_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/link_spec.rb b/spec/link_spec.rb new file mode 100644 index 0000000..fe53cf0 --- /dev/null +++ b/spec/link_spec.rb @@ -0,0 +1,26 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# + +require 'spec_helper' +# +describe EvenDoors::Link do + # + it "from particle data" do + p = EvenDoors::Spin.require_p EvenDoors::Particle + p.set_data EvenDoors::LNK_SRC, 'input1' + p.set_data EvenDoors::LNK_DSTS, 'concat1?follow,output1' + p.set_data EvenDoors::LNK_FIELDS, 'f0,f2' + p.set_data EvenDoors::LNK_CONDF, 'f0,f1,f2' + p.set_data EvenDoors::LNK_CONDV, 'v0v1v2' + lnk = EvenDoors::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 + # +end +# +# EOF |