summaryrefslogtreecommitdiffstats
path: root/spec/door_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-27 11:49:10 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-27 11:49:10 +0200
commit06fe1fe549d6c7dbb643a07a485d24c3e45216d3 (patch)
tree90947a79c9732a3424b28fd972de06e070e95c53 /spec/door_spec.rb
parent2526cd9aef3bb7dc04901be4067dd211f03fe9b5 (diff)
parent7cfcad744d3e18cbe8a9f71c43a0cad1e8fdd6b4 (diff)
downloadedoors-ruby-06fe1fe549d6c7dbb643a07a485d24c3e45216d3.zip
edoors-ruby-06fe1fe549d6c7dbb643a07a485d24c3e45216d3.tar.gz
Merge branch 'rewrite0'
Diffstat (limited to 'spec/door_spec.rb')
-rw-r--r--spec/door_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/door_spec.rb b/spec/door_spec.rb
index 0c2dafe..d86bb5a 100644
--- a/spec/door_spec.rb
+++ b/spec/door_spec.rb
@@ -17,10 +17,10 @@ describe Edoors::Door do
it "require_p release_p" do
door = Edoors::Door.new 'hell', @spin
p0 = door.require_p Edoors::Particle
- p1 = door.require_p Edoors::Particle
+ p1 = door.require_p
(p0===p1).should be_false
door.release_p p0
- p2 = door.require_p Edoors::Particle
+ p2 = door.require_p
(p0===p2).should be_true
end
#
@@ -67,7 +67,7 @@ describe Edoors::Door do
p0.add_dst 'RELEASE'
p0.split_dst!
d0.process_p p0
- p1 = d0.require_p Edoors::Particle
+ p1 = d0.require_p
p1.should be p0
p0.clear_dsts!
#