incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962105 - /incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb
Date Thu, 08 Jul 2010 23:23:09 GMT
Author: lutter
Date: Thu Jul  8 23:23:09 2010
New Revision: 962105

URL: http://svn.apache.org/viewvc?rev=962105&view=rev
Log:
Adjust specs for begin/end in FSM.

Modified:
    incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb

Modified: incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb?rev=962105&r1=962104&r2=962105&view=diff
==============================================================================
--- incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb (original)
+++ incubator/deltacloud/trunk/client-ruby/specs/instance_states_spec.rb Thu Jul  8 23:23:09
2010
@@ -20,14 +20,18 @@ describe "instance-states" do
       instance_states.should_not be_nil
       instance_states.should_not be_empty
 
-      instance_states[0].name.should eql( 'pending' )
+      instance_states[0].name.should eql( 'begin' )
       instance_states[0].transitions.size.should eql( 1 )
       instance_states[0].transitions[0].should be_auto
 
-      instance_states[1].name.should eql( 'running' )
-      instance_states[1].transitions.size.should eql( 2 )
-      includes_transition( instance_states[1].transitions, :reboot, :running ).should be_true
-      includes_transition( instance_states[1].transitions, :stop, :terminated ).should be_true
+      instance_states[1].name.should eql( 'pending' )
+      instance_states[1].transitions.size.should eql( 1 )
+      instance_states[1].transitions[0].should be_auto
+
+      instance_states[2].name.should eql( 'running' )
+      instance_states[2].transitions.size.should eql( 2 )
+      includes_transition( instance_states[2].transitions, :reboot, :running ).should be_true
+      includes_transition( instance_states[2].transitions, :stop, :stopped ).should be_true
     end
   end 
 
@@ -43,7 +47,7 @@ describe "instance-states" do
       instance_state.name.should eql( 'running' )
       instance_state.transitions.size.should eql( 2 )
       includes_transition( instance_state.transitions, :reboot, :running ).should be_true
-      includes_transition( instance_state.transitions, :stop, :terminated ).should be_true
+      includes_transition( instance_state.transitions, :stop, :stopped ).should be_true
     end
   end
 



Mime
View raw message