summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-26 16:47:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-26 16:47:28 +0200
commitac3a7f52c9c61b87f6f8586cb046e98455314966 (patch)
tree85ec02fe52455f09a5ccf6bb5b33625d82b784ab /spec
parent57d31d2fadd15d3b96410fea1e126298d52339bf (diff)
downloadedoors-ruby-ac3a7f52c9c61b87f6f8586cb046e98455314966.zip
edoors-ruby-ac3a7f52c9c61b87f6f8586cb046e98455314966.tar.gz
update door_specs
Diffstat (limited to 'spec')
-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!
#