summaryrefslogtreecommitdiffstats
path: root/spec/iota_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/iota_spec.rb')
-rw-r--r--spec/iota_spec.rb20
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