summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-13 00:46:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-13 00:46:50 +0200
commitb05b24be3e56a9283161f711d314542beba2f9a5 (patch)
tree7c1de4df2f1f1c0de5c5c3941e7bcfb452d1337d
parenta2496f647ff0f2532fb8ee4a0c02c80e7aa2a2cb (diff)
downloadedoors-ruby-b05b24be3e56a9283161f711d314542beba2f9a5.zip
edoors-ruby-b05b24be3e56a9283161f711d314542beba2f9a5.tar.gz
specs: add Spin hibernate! and resume! specs
-rw-r--r--spec/spin_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/spin_spec.rb b/spec/spin_spec.rb
index f8cdc60..1350d19 100644
--- a/spec/spin_spec.rb
+++ b/spec/spin_spec.rb
@@ -103,6 +103,16 @@ describe EvenDoors::Spin do
json.should eql JSON.generate(dom0)
end
#
+ it "hibernate! resume!" do
+ spin = EvenDoors::Spin.new 'dom0'
+ p0 = spin.require_p EvenDoors::Particle
+ p0.set_dst! EvenDoors::SYS_ACT_HIBERNATE
+ spin.send_sys_p p0
+ spin.spin!
+ dom0 = EvenDoors::Spin.resume! spin.hibernate_path
+ dom0.name.should eql spin.name
+ end
+ #
end
#
#EOF