diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:46:50 +0200 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-13 00:46:50 +0200 |
| commit | b05b24be3e56a9283161f711d314542beba2f9a5 (patch) | |
| tree | 7c1de4df2f1f1c0de5c5c3941e7bcfb452d1337d | |
| parent | a2496f647ff0f2532fb8ee4a0c02c80e7aa2a2cb (diff) | |
| download | edoors-ruby-b05b24be3e56a9283161f711d314542beba2f9a5.zip edoors-ruby-b05b24be3e56a9283161f711d314542beba2f9a5.tar.gz | |
specs: add Spin hibernate! and resume! specs
| -rw-r--r-- | spec/spin_spec.rb | 10 |
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 |
