From b05b24be3e56a9283161f711d314542beba2f9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 13 May 2012 00:46:50 +0200 Subject: specs: add Spin hibernate! and resume! specs --- spec/spin_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.1-2-g2b99