From 1d70922b515eb58eb5b312db86142b639b2b2485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 27 Jun 2012 11:57:04 +0200 Subject: complete iota_specs --- spec/iota_spec.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spec/iota_spec.rb b/spec/iota_spec.rb index 38f61b7..787d007 100644 --- a/spec/iota_spec.rb +++ b/spec/iota_spec.rb @@ -21,6 +21,26 @@ describe Edoors::Iota do lambda { Edoors::Iota.new('door0/', nil) }.should raise_error(Edoors::Exception) end # + it 'start! should do nothing' do + S.new('top', nil).start!.should be_nil + end + # + it 'stop! should do nothing' do + S.new('top', nil).stop!.should be_nil + end + # + it 'hibernate! should return empty hash' do + S.new('top', nil).hibernate!.should be {} + end + # + it 'resume! should do nothing' do + S.new('top', nil).resume!(nil).should be_nil + end + # + it 'receive_p should raise NoMethodError' do + lambda { Edoors::Iota.new('top', nil).receive_p nil }.should raise_error(NoMethodError) + end + # end # # EOF -- cgit v1.1-2-g2b99