test/basic_test.rb in state_manager-0.2.5 vs test/basic_test.rb in state_manager-0.2.6
- old
+ new
@@ -127,6 +127,13 @@
assert_raise StateManager::InvalidTransition do
@resource.state_manager.transition_to('submitted')
end
end
+ def test_transition_to_current_state
+ @resource = PostWithInitialState.new
+ assert_state 'submitted.awaiting_review'
+ @resource.state_manager.transition_to('submitted.awaiting_review')
+ assert_state 'submitted.awaiting_review'
+ end
+
end