diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-11 11:38:04 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-12 09:38:01 +0200 |
commit | 5567062313e9a5a03b1bf8c2a4b30c8c2d45258f (patch) | |
tree | 38a886512a15ea45668bcefd07df3762a7a02d50 /spec/board_spec.rb | |
parent | da6f1d375223217298b4609dc4eaf8d1d131901c (diff) | |
download | edoors-ruby-5567062313e9a5a03b1bf8c2a4b30c8c2d45258f.zip edoors-ruby-5567062313e9a5a03b1bf8c2a4b30c8c2d45258f.tar.gz |
specs: Board adapt to non static way
Diffstat (limited to 'spec/board_spec.rb')
-rw-r--r-- | spec/board_spec.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/board_spec.rb b/spec/board_spec.rb index 1d4d931..9f76dc7 100644 --- a/spec/board_spec.rb +++ b/spec/board_spec.rb @@ -6,12 +6,16 @@ require 'spec_helper' # describe EvenDoors::Board do # + before (:all) do + @spin = EvenDoors::Spin.new 'dom0' + end + # before(:each) do - EvenDoors::Spin.clear! + @spin.clear! end # it "require_p release_p" do - board = EvenDoors::Board.new 'hell' + board = EvenDoors::Board.new 'hell', @spin p0 = board.require_p EvenDoors::Particle p0.src.should be board p1 = board.require_p EvenDoors::Particle @@ -52,7 +56,7 @@ describe EvenDoors::Board do end end end - b0 = Board0.new 'door0' + b0 = Board0.new 'door0', @spin b0.process_p p0 p0.merged(0).should be_nil b0.process_p p1 @@ -74,7 +78,7 @@ describe EvenDoors::Board do end # it "board->json->board" do - board = EvenDoors::Board.new 'hell' + board = EvenDoors::Board.new 'hell', @spin p0 = EvenDoors::Particle.new p1 = EvenDoors::Particle.new p1['v0']=0 |