diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 10:09:42 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-03 10:09:42 +0200 |
commit | d15d685884db41c7480f30c201d7303de8c55788 (patch) | |
tree | 47e23802dd6d8a33a8d4762da44e664b989df153 /spec | |
parent | 3acfb2c015df1af71db3bb16c26e01ffdd56962e (diff) | |
download | edoors-ruby-d15d685884db41c7480f30c201d7303de8c55788.zip edoors-ruby-d15d685884db41c7480f30c201d7303de8c55788.tar.gz |
Door: do not call p#init! in require_p, only in send_p
Diffstat (limited to 'spec')
-rw-r--r-- | spec/board_spec.rb | 3 | ||||
-rw-r--r-- | spec/door_spec.rb | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/spec/board_spec.rb b/spec/board_spec.rb index d549530..0499778 100644 --- a/spec/board_spec.rb +++ b/spec/board_spec.rb @@ -17,13 +17,10 @@ describe Iotas::Board do it "require_p release_p" do board = Iotas::Board.new 'hell', @spin p0 = board.require_p Iotas::Particle - p0.src.should be board p1 = board.require_p Iotas::Particle - p1.src.should be board (p0===p1).should be_false board.release_p p0 p2 = board.require_p Iotas::Particle - p2.src.should be board (p0===p2).should be_true end # diff --git a/spec/door_spec.rb b/spec/door_spec.rb index b836786..43b98a1 100644 --- a/spec/door_spec.rb +++ b/spec/door_spec.rb @@ -17,13 +17,10 @@ describe Iotas::Door do it "require_p release_p" do door = Iotas::Door.new 'hell', @spin p0 = door.require_p Iotas::Particle - p0.src.should be door p1 = door.require_p Iotas::Particle - p1.src.should be door (p0===p1).should be_false door.release_p p0 p2 = door.require_p Iotas::Particle - p2.src.should be door (p0===p2).should be_true end # |