diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-27 11:57:04 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-27 11:57:04 +0200 |
commit | 1d70922b515eb58eb5b312db86142b639b2b2485 (patch) | |
tree | 27da1f705930ad691fb60422d76f04da603345ec | |
parent | 06fe1fe549d6c7dbb643a07a485d24c3e45216d3 (diff) | |
download | edoors-ruby-1d70922b515eb58eb5b312db86142b639b2b2485.zip edoors-ruby-1d70922b515eb58eb5b312db86142b639b2b2485.tar.gz |
complete iota_specs
-rw-r--r-- | spec/iota_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
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 |