state_machines 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-gemset +1 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +2 -0
  5. data/Changelog.md +7 -1
  6. data/README.md +11 -9
  7. data/lib/state_machines/extensions.rb +1 -1
  8. data/lib/state_machines/integrations.rb +1 -5
  9. data/lib/state_machines/integrations/base.rb +2 -5
  10. data/lib/state_machines/machine.rb +14 -10
  11. data/lib/state_machines/path_collection.rb +3 -3
  12. data/lib/state_machines/state.rb +21 -16
  13. data/lib/state_machines/state_collection.rb +1 -1
  14. data/lib/state_machines/transition.rb +1 -1
  15. data/lib/state_machines/transition_collection.rb +2 -2
  16. data/lib/state_machines/version.rb +1 -1
  17. data/state_machines.gemspec +1 -2
  18. data/test/files/integrations/vehicle.rb +1 -1
  19. data/test/files/models/driver.rb +13 -0
  20. data/test/files/models/motorcycle.rb +5 -0
  21. data/test/functional/driver_default_nonstandard_test.rb +13 -0
  22. data/test/functional/motorcycle_test.rb +6 -0
  23. data/test/unit/event/event_with_matching_disabled_transitions_test.rb +1 -1
  24. data/test/unit/event/event_with_transition_with_nil_to_state_test.rb +2 -2
  25. data/test/unit/integrations/integration_matcher_test.rb +4 -2
  26. data/test/unit/machine/machine_with_custom_integration_test.rb +2 -2
  27. data/test/unit/transition_collection/transition_collection_empty_with_block_test.rb +1 -1
  28. data/test/unit/transition_collection/transition_collection_with_after_callback_halt_test.rb +10 -14
  29. data/test/unit/transition_collection/transition_collection_with_before_callback_halt_test.rb +14 -10
  30. metadata +9 -426
  31. data/test/unit/branch/branch_with_multiple_on_requirements_test.rb +0 -20
  32. data/test/unit/machine_collection/machine_collection_fire_attributes_with_validations_test.rb +0 -72
@@ -1,11 +1,16 @@
1
1
  require_relative '../../files/models/vehicle'
2
2
 
3
3
  class Motorcycle < Vehicle
4
+ def self.example_class_method(args={})
5
+ end
6
+
4
7
  state_machine initial: :idling do
5
8
  state :first_gear do
6
9
  def decibels
7
10
  1.0
8
11
  end
12
+
13
+ example_class_method
9
14
  end
10
15
  end
11
16
  end
@@ -0,0 +1,13 @@
1
+ require_relative '../test_helper'
2
+ require_relative '../files/models/driver'
3
+
4
+ class DriverNonstandardTest < MiniTest::Test
5
+ def setup
6
+ @driver = Driver.new
7
+ @events = Driver.state_machine.events
8
+ end
9
+
10
+ def test_should_have
11
+ assert_equal 1, @events.transitions_for(@driver).size
12
+ end
13
+ end
@@ -43,4 +43,10 @@ class MotorcycleTest < MiniTest::Test
43
43
  @motorcycle.shift_up
44
44
  assert_equal 1.0, @motorcycle.decibels
45
45
  end
46
+
47
+ def test_should_not_inherit_from_superclass_if_value_is_set
48
+ vehicle = Vehicle.new
49
+ @motorcycle.shift_up
50
+ assert_equal 0.0, vehicle.decibels
51
+ end
46
52
  end
@@ -72,7 +72,7 @@ class EventWithMatchingDisabledTransitionsTest < StateMachinesTest
72
72
  end
73
73
 
74
74
  machine = StateMachines::Machine.new(klass, integration: :custom, messages: { invalid_transition: 'cannot transition via "%s" from "%s"' })
75
- parked, idling = machine.state :parked, :idling
75
+ parked, _idling = machine.state :parked, :idling
76
76
  parked.human_name = 'stopped'
77
77
 
78
78
  machine.events << event = StateMachines::Event.new(machine, :ignite)
@@ -21,7 +21,7 @@ class EventWithTransitionWithNilToStateTest < StateMachinesTest
21
21
  transition = @event.transition_for(@object)
22
22
  refute_nil transition
23
23
  assert_equal 'idling', transition.from
24
- assert_equal nil, transition.to
24
+ assert_nil transition.to
25
25
  assert_equal :park, transition.event
26
26
  end
27
27
 
@@ -31,6 +31,6 @@ class EventWithTransitionWithNilToStateTest < StateMachinesTest
31
31
 
32
32
  def test_should_not_change_the_current_state
33
33
  @event.fire(@object)
34
- assert_equal nil, @object.state
34
+ assert_nil @object.state
35
35
  end
36
36
  end
@@ -17,11 +17,13 @@ class IntegrationMatcherTest < StateMachinesTest
17
17
  end
18
18
 
19
19
  def test_should_return_nil_if_no_match_found_with_ancestors
20
- assert_nil StateMachines::Integrations.match_ancestors(['Fake'])
20
+ fake = Class.new
21
+ assert_nil StateMachines::Integrations.match_ancestors([fake])
21
22
  end
22
23
 
23
24
  def test_should_return_integration_class_if_match_found_with_ancestors
25
+ fake = Class.new
24
26
  StateMachines::Integrations.register(VehicleIntegration)
25
- assert_equal VehicleIntegration, StateMachines::Integrations.match_ancestors(['Fake', 'Vehicle'])
27
+ assert_equal VehicleIntegration, StateMachines::Integrations.match_ancestors([fake, Vehicle])
26
28
  end
27
29
  end
@@ -6,7 +6,7 @@ class MachineWithCustomIntegrationTest < StateMachinesTest
6
6
  include StateMachines::Integrations::Base
7
7
 
8
8
  def self.matching_ancestors
9
- ['Vehicle']
9
+ [Vehicle]
10
10
  end
11
11
  end
12
12
 
@@ -65,7 +65,7 @@ class MachineWithCustomIntegrationTest < StateMachinesTest
65
65
  MachineWithCustomIntegrationTest::Custom.class_eval do
66
66
  class << self; remove_method :matching_ancestors; end
67
67
  def self.matching_ancestors
68
- ['Vehicle']
68
+ [Vehicle]
69
69
  end
70
70
  end
71
71
  end
@@ -18,6 +18,6 @@ class TransitionCollectionEmptyWithBlockTest < StateMachinesTest
18
18
  end
19
19
 
20
20
  def test_should_use_block_reslut_if_nil
21
- assert_equal nil, @transitions.perform { nil }
21
+ assert_nil @transitions.perform { nil }
22
22
  end
23
23
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../../test_helper'
2
2
 
3
- class TransitionCollectionWithBeforeCallbackHaltTest < StateMachinesTest
3
+ class TransitionCollectionWithAfterCallbackHaltTest < StateMachinesTest
4
4
  def setup
5
5
  @klass = Class.new do
6
6
  attr_reader :saved
@@ -16,8 +16,8 @@ class TransitionCollectionWithBeforeCallbackHaltTest < StateMachinesTest
16
16
  @machine.state :idling
17
17
  @machine.event :ignite
18
18
 
19
- @machine.before_transition { @before_count += 1; throw :halt }
20
19
  @machine.before_transition { @before_count += 1 }
20
+ @machine.after_transition { @after_count += 1; throw :halt }
21
21
  @machine.after_transition { @after_count += 1 }
22
22
  @machine.around_transition { |block| @before_count += 1; block.call; @after_count += 1 }
23
23
 
@@ -29,23 +29,19 @@ class TransitionCollectionWithBeforeCallbackHaltTest < StateMachinesTest
29
29
  @result = @transitions.perform
30
30
  end
31
31
 
32
- def test_should_not_succeed
33
- assert_equal false, @result
32
+ def test_should_succeed
33
+ assert_equal true, @result
34
34
  end
35
35
 
36
- def test_should_not_persist_state
37
- assert_equal 'parked', @object.state
36
+ def test_should_persist_state
37
+ assert_equal 'idling', @object.state
38
38
  end
39
39
 
40
- def test_should_not_run_action
41
- refute @object.saved
40
+ def test_should_run_before_callbacks
41
+ assert_equal 2, @before_count
42
42
  end
43
43
 
44
- def test_should_not_run_further_before_callbacks
45
- assert_equal 1, @before_count
46
- end
47
-
48
- def test_should_not_run_after_callbacks
49
- assert_equal 0, @after_count
44
+ def test_should_not_run_further_after_callbacks
45
+ assert_equal 2, @after_count
50
46
  end
51
47
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../../test_helper'
2
2
 
3
- class TransitionCollectionWithAfterCallbackHaltTest < StateMachinesTest
3
+ class TransitionCollectionWithBeforeCallbackHaltTest < StateMachinesTest
4
4
  def setup
5
5
  @klass = Class.new do
6
6
  attr_reader :saved
@@ -16,8 +16,8 @@ class TransitionCollectionWithAfterCallbackHaltTest < StateMachinesTest
16
16
  @machine.state :idling
17
17
  @machine.event :ignite
18
18
 
19
+ @machine.before_transition { @before_count += 1; throw :halt }
19
20
  @machine.before_transition { @before_count += 1 }
20
- @machine.after_transition { @after_count += 1; throw :halt }
21
21
  @machine.after_transition { @after_count += 1 }
22
22
  @machine.around_transition { |block| @before_count += 1; block.call; @after_count += 1 }
23
23
 
@@ -29,19 +29,23 @@ class TransitionCollectionWithAfterCallbackHaltTest < StateMachinesTest
29
29
  @result = @transitions.perform
30
30
  end
31
31
 
32
- def test_should_succeed
33
- assert_equal true, @result
32
+ def test_should_not_succeed
33
+ assert_equal false, @result
34
34
  end
35
35
 
36
- def test_should_persist_state
37
- assert_equal 'idling', @object.state
36
+ def test_should_not_persist_state
37
+ assert_equal 'parked', @object.state
38
38
  end
39
39
 
40
- def test_should_run_before_callbacks
41
- assert_equal 2, @before_count
40
+ def test_should_not_run_action
41
+ refute @object.saved
42
42
  end
43
43
 
44
- def test_should_not_run_further_after_callbacks
45
- assert_equal 2, @after_count
44
+ def test_should_not_run_further_before_callbacks
45
+ assert_equal 1, @before_count
46
+ end
47
+
48
+ def test_should_not_run_after_callbacks
49
+ assert_equal 0, @after_count
46
50
  end
47
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-18 00:00:00.000000000 Z
12
+ date: 2017-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -63,6 +63,8 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - ".gitignore"
65
65
  - ".rspec"
66
+ - ".ruby-gemset"
67
+ - ".ruby-version"
66
68
  - ".travis.yml"
67
69
  - Changelog.md
68
70
  - Contributors.md
@@ -105,6 +107,7 @@ files:
105
107
  - test/files/integrations/vehicle.rb
106
108
  - test/files/models/auto_shop.rb
107
109
  - test/files/models/car.rb
110
+ - test/files/models/driver.rb
108
111
  - test/files/models/model_base.rb
109
112
  - test/files/models/motorcycle.rb
110
113
  - test/files/models/traffic_light.rb
@@ -115,6 +118,7 @@ files:
115
118
  - test/functional/auto_shop_busy_test.rb
116
119
  - test/functional/car_backing_up_test.rb
117
120
  - test/functional/car_test.rb
121
+ - test/functional/driver_default_nonstandard_test.rb
118
122
  - test/functional/motorcycle_test.rb
119
123
  - test/functional/traffic_light_caution_test.rb
120
124
  - test/functional/traffic_light_proceed_test.rb
@@ -159,7 +163,6 @@ files:
159
163
  - test/unit/branch/branch_with_multiple_from_requirements_test.rb
160
164
  - test/unit/branch/branch_with_multiple_if_conditionals_test.rb
161
165
  - test/unit/branch/branch_with_multiple_implicit_requirements_test.rb
162
- - test/unit/branch/branch_with_multiple_on_requirements_test.rb
163
166
  - test/unit/branch/branch_with_multiple_to_requirements_test.rb
164
167
  - test/unit/branch/branch_with_multiple_unless_conditionals_test.rb
165
168
  - test/unit/branch/branch_with_nil_requirements_test.rb
@@ -330,7 +333,6 @@ files:
330
333
  - test/unit/machine/machine_without_initialize_test.rb
331
334
  - test/unit/machine/machine_without_integration_test.rb
332
335
  - test/unit/machine_collection/machine_collection_by_default_test.rb
333
- - test/unit/machine_collection/machine_collection_fire_attributes_with_validations_test.rb
334
336
  - test/unit/machine_collection/machine_collection_fire_test.rb
335
337
  - test/unit/machine_collection/machine_collection_fire_with_transactions_test.rb
336
338
  - test/unit/machine_collection/machine_collection_fire_with_validations_test.rb
@@ -531,7 +533,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
531
533
  requirements:
532
534
  - - ">="
533
535
  - !ruby/object:Gem::Version
534
- version: 1.9.3
536
+ version: 2.0.0
535
537
  required_rubygems_version: !ruby/object:Gem::Requirement
536
538
  requirements:
537
539
  - - ">="
@@ -539,427 +541,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
539
541
  version: '0'
540
542
  requirements: []
541
543
  rubyforge_project:
542
- rubygems_version: 2.4.5
544
+ rubygems_version: 2.6.12
543
545
  signing_key:
544
546
  specification_version: 4
545
547
  summary: State machines for attributes
546
- test_files:
547
- - test/files/integrations/event_on_failure_integration.rb
548
- - test/files/integrations/vehicle.rb
549
- - test/files/models/auto_shop.rb
550
- - test/files/models/car.rb
551
- - test/files/models/model_base.rb
552
- - test/files/models/motorcycle.rb
553
- - test/files/models/traffic_light.rb
554
- - test/files/models/vehicle.rb
555
- - test/files/node.rb
556
- - test/files/switch.rb
557
- - test/functional/auto_shop_available_test.rb
558
- - test/functional/auto_shop_busy_test.rb
559
- - test/functional/car_backing_up_test.rb
560
- - test/functional/car_test.rb
561
- - test/functional/motorcycle_test.rb
562
- - test/functional/traffic_light_caution_test.rb
563
- - test/functional/traffic_light_proceed_test.rb
564
- - test/functional/traffic_light_stop_test.rb
565
- - test/functional/vehicle_first_gear_test.rb
566
- - test/functional/vehicle_idling_test.rb
567
- - test/functional/vehicle_locked_test.rb
568
- - test/functional/vehicle_parked_test.rb
569
- - test/functional/vehicle_repaired_test.rb
570
- - test/functional/vehicle_second_gear_test.rb
571
- - test/functional/vehicle_stalled_test.rb
572
- - test/functional/vehicle_test.rb
573
- - test/functional/vehicle_third_gear_test.rb
574
- - test/functional/vehicle_unsaved_test.rb
575
- - test/functional/vehicle_with_event_attributes_test.rb
576
- - test/functional/vehicle_with_parallel_events_test.rb
577
- - test/test_helper.rb
578
- - test/unit/assertions/assert_exclusive_keys_test.rb
579
- - test/unit/assertions/assert_valid_key_test.rb
580
- - test/unit/branch/branch_test.rb
581
- - test/unit/branch/branch_with_conflicting_conditionals_test.rb
582
- - test/unit/branch/branch_with_conflicting_from_requirements_test.rb
583
- - test/unit/branch/branch_with_conflicting_on_requirements_test.rb
584
- - test/unit/branch/branch_with_conflicting_to_requirements_test.rb
585
- - test/unit/branch/branch_with_different_requirements_test.rb
586
- - test/unit/branch/branch_with_except_from_matcher_requirement_test.rb
587
- - test/unit/branch/branch_with_except_from_requirement_test.rb
588
- - test/unit/branch/branch_with_except_on_matcher_requirement_test.rb
589
- - test/unit/branch/branch_with_except_on_requirement_test.rb
590
- - test/unit/branch/branch_with_except_to_matcher_requirement_test.rb
591
- - test/unit/branch/branch_with_except_to_requirement_test.rb
592
- - test/unit/branch/branch_with_from_matcher_requirement_test.rb
593
- - test/unit/branch/branch_with_from_requirement_test.rb
594
- - test/unit/branch/branch_with_if_conditional_test.rb
595
- - test/unit/branch/branch_with_implicit_and_explicit_requirements_test.rb
596
- - test/unit/branch/branch_with_implicit_from_requirement_matcher_test.rb
597
- - test/unit/branch/branch_with_implicit_requirement_test.rb
598
- - test/unit/branch/branch_with_implicit_to_requirement_matcher_test.rb
599
- - test/unit/branch/branch_with_multiple_except_from_requirements_test.rb
600
- - test/unit/branch/branch_with_multiple_except_on_requirements_test.rb
601
- - test/unit/branch/branch_with_multiple_except_to_requirements_test.rb
602
- - test/unit/branch/branch_with_multiple_from_requirements_test.rb
603
- - test/unit/branch/branch_with_multiple_if_conditionals_test.rb
604
- - test/unit/branch/branch_with_multiple_implicit_requirements_test.rb
605
- - test/unit/branch/branch_with_multiple_on_requirements_test.rb
606
- - test/unit/branch/branch_with_multiple_to_requirements_test.rb
607
- - test/unit/branch/branch_with_multiple_unless_conditionals_test.rb
608
- - test/unit/branch/branch_with_nil_requirements_test.rb
609
- - test/unit/branch/branch_with_no_requirements_test.rb
610
- - test/unit/branch/branch_with_on_matcher_requirement_test.rb
611
- - test/unit/branch/branch_with_on_requirement_test.rb
612
- - test/unit/branch/branch_with_to_matcher_requirement_test.rb
613
- - test/unit/branch/branch_with_to_requirement_test.rb
614
- - test/unit/branch/branch_with_unless_conditional_test.rb
615
- - test/unit/branch/branch_without_guards_test.rb
616
- - test/unit/callback/callback_by_default_test.rb
617
- - test/unit/callback/callback_test.rb
618
- - test/unit/callback/callback_with_application_bound_object_test.rb
619
- - test/unit/callback/callback_with_application_terminator_test.rb
620
- - test/unit/callback/callback_with_arguments_test.rb
621
- - test/unit/callback/callback_with_around_type_and_arguments_test.rb
622
- - test/unit/callback/callback_with_around_type_and_block_test.rb
623
- - test/unit/callback/callback_with_around_type_and_bound_method_test.rb
624
- - test/unit/callback/callback_with_around_type_and_multiple_methods_test.rb
625
- - test/unit/callback/callback_with_around_type_and_terminator_test.rb
626
- - test/unit/callback/callback_with_block_test.rb
627
- - test/unit/callback/callback_with_bound_method_and_arguments_test.rb
628
- - test/unit/callback/callback_with_bound_method_test.rb
629
- - test/unit/callback/callback_with_do_method_test.rb
630
- - test/unit/callback/callback_with_explicit_requirements_test.rb
631
- - test/unit/callback/callback_with_if_condition_test.rb
632
- - test/unit/callback/callback_with_implicit_requirements_test.rb
633
- - test/unit/callback/callback_with_method_argument_test.rb
634
- - test/unit/callback/callback_with_mixed_methods_test.rb
635
- - test/unit/callback/callback_with_multiple_bound_methods_test.rb
636
- - test/unit/callback/callback_with_multiple_do_methods_test.rb
637
- - test/unit/callback/callback_with_multiple_method_arguments_test.rb
638
- - test/unit/callback/callback_with_terminator_test.rb
639
- - test/unit/callback/callback_with_unbound_method_test.rb
640
- - test/unit/callback/callback_with_unless_condition_test.rb
641
- - test/unit/callback/callback_without_arguments_test.rb
642
- - test/unit/callback/callback_without_terminator_test.rb
643
- - test/unit/error/error_by_default_test.rb
644
- - test/unit/error/error_with_message_test.rb
645
- - test/unit/eval_helper/eval_helpers_base_test.rb
646
- - test/unit/eval_helper/eval_helpers_proc_block_and_explicit_arguments_test.rb
647
- - test/unit/eval_helper/eval_helpers_proc_block_and_implicit_arguments_test.rb
648
- - test/unit/eval_helper/eval_helpers_proc_test.rb
649
- - test/unit/eval_helper/eval_helpers_proc_with_arguments_test.rb
650
- - test/unit/eval_helper/eval_helpers_proc_with_block_test.rb
651
- - test/unit/eval_helper/eval_helpers_proc_with_block_without_arguments_test.rb
652
- - test/unit/eval_helper/eval_helpers_proc_with_block_without_object_test.rb
653
- - test/unit/eval_helper/eval_helpers_proc_without_arguments_test.rb
654
- - test/unit/eval_helper/eval_helpers_string_test.rb
655
- - test/unit/eval_helper/eval_helpers_string_with_block_test.rb
656
- - test/unit/eval_helper/eval_helpers_symbol_method_missing_test.rb
657
- - test/unit/eval_helper/eval_helpers_symbol_private_test.rb
658
- - test/unit/eval_helper/eval_helpers_symbol_protected_test.rb
659
- - test/unit/eval_helper/eval_helpers_symbol_tainted_method_test.rb
660
- - test/unit/eval_helper/eval_helpers_symbol_test.rb
661
- - test/unit/eval_helper/eval_helpers_symbol_with_arguments_and_block_test.rb
662
- - test/unit/eval_helper/eval_helpers_symbol_with_arguments_test.rb
663
- - test/unit/eval_helper/eval_helpers_symbol_with_block_test.rb
664
- - test/unit/eval_helper/eval_helpers_test.rb
665
- - test/unit/event/event_after_being_copied_test.rb
666
- - test/unit/event/event_by_default_test.rb
667
- - test/unit/event/event_context_test.rb
668
- - test/unit/event/event_on_failure_test.rb
669
- - test/unit/event/event_test.rb
670
- - test/unit/event/event_transitions_test.rb
671
- - test/unit/event/event_with_conflicting_helpers_after_definition_test.rb
672
- - test/unit/event/event_with_conflicting_helpers_before_definition_test.rb
673
- - test/unit/event/event_with_conflicting_machine_test.rb
674
- - test/unit/event/event_with_dynamic_human_name_test.rb
675
- - test/unit/event/event_with_human_name_test.rb
676
- - test/unit/event/event_with_invalid_current_state_test.rb
677
- - test/unit/event/event_with_machine_action_test.rb
678
- - test/unit/event/event_with_marshalling_test.rb
679
- - test/unit/event/event_with_matching_disabled_transitions_test.rb
680
- - test/unit/event/event_with_matching_enabled_transitions_test.rb
681
- - test/unit/event/event_with_multiple_transitions_test.rb
682
- - test/unit/event/event_with_namespace_test.rb
683
- - test/unit/event/event_with_transition_with_blacklisted_to_state_test.rb
684
- - test/unit/event/event_with_transition_with_loopback_state_test.rb
685
- - test/unit/event/event_with_transition_with_nil_to_state_test.rb
686
- - test/unit/event/event_with_transition_with_whitelisted_to_state_test.rb
687
- - test/unit/event/event_with_transition_without_to_state_test.rb
688
- - test/unit/event/event_with_transitions_test.rb
689
- - test/unit/event/event_without_matching_transitions_test.rb
690
- - test/unit/event/event_without_transitions_test.rb
691
- - test/unit/event/invalid_event_test.rb
692
- - test/unit/event_collection/event_collection_attribute_with_machine_action_test.rb
693
- - test/unit/event_collection/event_collection_attribute_with_namespaced_machine_test.rb
694
- - test/unit/event_collection/event_collection_by_default_test.rb
695
- - test/unit/event_collection/event_collection_test.rb
696
- - test/unit/event_collection/event_collection_with_custom_machine_attribute_test.rb
697
- - test/unit/event_collection/event_collection_with_events_with_transitions_test.rb
698
- - test/unit/event_collection/event_collection_with_multiple_events_test.rb
699
- - test/unit/event_collection/event_collection_with_validations_test.rb
700
- - test/unit/event_collection/event_collection_without_machine_action_test.rb
701
- - test/unit/event_collection/event_string_collection_test.rb
702
- - test/unit/helper_module_test.rb
703
- - test/unit/integrations/integration_finder_test.rb
704
- - test/unit/integrations/integration_matcher_test.rb
705
- - test/unit/invalid_transition/invalid_parallel_transition_test.rb
706
- - test/unit/invalid_transition/invalid_transition_test.rb
707
- - test/unit/invalid_transition/invalid_transition_with_integration_test.rb
708
- - test/unit/invalid_transition/invalid_transition_with_namespace_test.rb
709
- - test/unit/machine/machine_after_being_copied_test.rb
710
- - test/unit/machine/machine_after_changing_initial_state.rb
711
- - test/unit/machine/machine_after_changing_owner_class_test.rb
712
- - test/unit/machine/machine_by_default_test.rb
713
- - test/unit/machine/machine_finder_custom_options_test.rb
714
- - test/unit/machine/machine_finder_with_existing_machine_on_superclass_test.rb
715
- - test/unit/machine/machine_finder_with_existing_on_same_class_test.rb
716
- - test/unit/machine/machine_finder_without_existing_machine_test.rb
717
- - test/unit/machine/machine_persistence_test.rb
718
- - test/unit/machine/machine_state_initialization_test.rb
719
- - test/unit/machine/machine_test.rb
720
- - test/unit/machine/machine_with_action_already_overridden_test.rb
721
- - test/unit/machine/machine_with_action_defined_in_class_test.rb
722
- - test/unit/machine/machine_with_action_defined_in_included_module_test.rb
723
- - test/unit/machine/machine_with_action_defined_in_superclass_test.rb
724
- - test/unit/machine/machine_with_action_undefined_test.rb
725
- - test/unit/machine/machine_with_cached_state_test.rb
726
- - test/unit/machine/machine_with_class_helpers_test.rb
727
- - test/unit/machine/machine_with_conflicting_helpers_after_definition_test.rb
728
- - test/unit/machine/machine_with_conflicting_helpers_before_definition_test.rb
729
- - test/unit/machine/machine_with_custom_action_test.rb
730
- - test/unit/machine/machine_with_custom_attribute_test.rb
731
- - test/unit/machine/machine_with_custom_initialize_test.rb
732
- - test/unit/machine/machine_with_custom_integration_test.rb
733
- - test/unit/machine/machine_with_custom_invalidation_test.rb
734
- - test/unit/machine/machine_with_custom_name_test.rb
735
- - test/unit/machine/machine_with_custom_plural_test.rb
736
- - test/unit/machine/machine_with_dynamic_initial_state_test.rb
737
- - test/unit/machine/machine_with_event_matchers_test.rb
738
- - test/unit/machine/machine_with_events_test.rb
739
- - test/unit/machine/machine_with_events_with_custom_human_names_test.rb
740
- - test/unit/machine/machine_with_events_with_transitions_test.rb
741
- - test/unit/machine/machine_with_existing_event_test.rb
742
- - test/unit/machine/machine_with_existing_machines_on_owner_class_test.rb
743
- - test/unit/machine/machine_with_existing_machines_with_same_attributes_on_owner_class_test.rb
744
- - test/unit/machine/machine_with_existing_machines_with_same_attributes_on_owner_subclass_test.rb
745
- - test/unit/machine/machine_with_existing_state_test.rb
746
- - test/unit/machine/machine_with_failure_callbacks_test.rb
747
- - test/unit/machine/machine_with_helpers_test.rb
748
- - test/unit/machine/machine_with_initial_state_with_value_and_owner_default.rb
749
- - test/unit/machine/machine_with_initialize_and_super_test.rb
750
- - test/unit/machine/machine_with_initialize_arguments_and_block_test.rb
751
- - test/unit/machine/machine_with_initialize_without_super_test.rb
752
- - test/unit/machine/machine_with_instance_helpers_test.rb
753
- - test/unit/machine/machine_with_integration_test.rb
754
- - test/unit/machine/machine_with_multiple_events_test.rb
755
- - test/unit/machine/machine_with_namespace_test.rb
756
- - test/unit/machine/machine_with_nil_action_test.rb
757
- - test/unit/machine/machine_with_other_states.rb
758
- - test/unit/machine/machine_with_owner_subclass_test.rb
759
- - test/unit/machine/machine_with_paths_test.rb
760
- - test/unit/machine/machine_with_private_action_test.rb
761
- - test/unit/machine/machine_with_state_matchers_test.rb
762
- - test/unit/machine/machine_with_state_with_matchers_test.rb
763
- - test/unit/machine/machine_with_states_test.rb
764
- - test/unit/machine/machine_with_states_with_behaviors_test.rb
765
- - test/unit/machine/machine_with_states_with_custom_human_names_test.rb
766
- - test/unit/machine/machine_with_states_with_custom_values_test.rb
767
- - test/unit/machine/machine_with_states_with_runtime_dependencies_test.rb
768
- - test/unit/machine/machine_with_static_initial_state_test.rb
769
- - test/unit/machine/machine_with_superclass_conflicting_helpers_after_definition_test.rb
770
- - test/unit/machine/machine_with_transition_callbacks_test.rb
771
- - test/unit/machine/machine_with_transitions_test.rb
772
- - test/unit/machine/machine_without_initialization_test.rb
773
- - test/unit/machine/machine_without_initialize_test.rb
774
- - test/unit/machine/machine_without_integration_test.rb
775
- - test/unit/machine_collection/machine_collection_by_default_test.rb
776
- - test/unit/machine_collection/machine_collection_fire_attributes_with_validations_test.rb
777
- - test/unit/machine_collection/machine_collection_fire_test.rb
778
- - test/unit/machine_collection/machine_collection_fire_with_transactions_test.rb
779
- - test/unit/machine_collection/machine_collection_fire_with_validations_test.rb
780
- - test/unit/machine_collection/machine_collection_state_initialization_test.rb
781
- - test/unit/machine_collection/machine_collection_transitions_with_blank_events_test.rb
782
- - test/unit/machine_collection/machine_collection_transitions_with_custom_options_test.rb
783
- - test/unit/machine_collection/machine_collection_transitions_with_different_actions_test.rb
784
- - test/unit/machine_collection/machine_collection_transitions_with_exisiting_transitions_test.rb
785
- - test/unit/machine_collection/machine_collection_transitions_with_invalid_events_test.rb
786
- - test/unit/machine_collection/machine_collection_transitions_with_same_actions_test.rb
787
- - test/unit/machine_collection/machine_collection_transitions_with_transition_test.rb
788
- - test/unit/machine_collection/machine_collection_transitions_without_events_test.rb
789
- - test/unit/machine_collection/machine_collection_transitions_without_transition_test.rb
790
- - test/unit/matcher/all_matcher_test.rb
791
- - test/unit/matcher/blacklist_matcher_test.rb
792
- - test/unit/matcher/loopback_matcher_test.rb
793
- - test/unit/matcher/matcher_by_default_test.rb
794
- - test/unit/matcher/matcher_with_multiple_values_test.rb
795
- - test/unit/matcher/matcher_with_value_test.rb
796
- - test/unit/matcher/whitelist_matcher_test.rb
797
- - test/unit/matcher_helpers/matcher_helpers_all_test.rb
798
- - test/unit/matcher_helpers/matcher_helpers_any_test.rb
799
- - test/unit/matcher_helpers/matcher_helpers_same_test.rb
800
- - test/unit/node_collection/node_collection_after_being_copied_test.rb
801
- - test/unit/node_collection/node_collection_after_update_test.rb
802
- - test/unit/node_collection/node_collection_by_default_test.rb
803
- - test/unit/node_collection/node_collection_test.rb
804
- - test/unit/node_collection/node_collection_with_indices_test.rb
805
- - test/unit/node_collection/node_collection_with_matcher_contexts_test.rb
806
- - test/unit/node_collection/node_collection_with_nodes_test.rb
807
- - test/unit/node_collection/node_collection_with_numeric_index_test.rb
808
- - test/unit/node_collection/node_collection_with_postdefined_contexts_test.rb
809
- - test/unit/node_collection/node_collection_with_predefined_contexts_test.rb
810
- - test/unit/node_collection/node_collection_with_string_index_test.rb
811
- - test/unit/node_collection/node_collection_with_symbol_index_test.rb
812
- - test/unit/node_collection/node_collection_without_indices_test.rb
813
- - test/unit/path/path_by_default_test.rb
814
- - test/unit/path/path_test.rb
815
- - test/unit/path/path_with_available_transitions_after_reaching_target_test.rb
816
- - test/unit/path/path_with_available_transitions_test.rb
817
- - test/unit/path/path_with_deep_target_reached_test.rb
818
- - test/unit/path/path_with_deep_target_test.rb
819
- - test/unit/path/path_with_duplicates_test.rb
820
- - test/unit/path/path_with_encountered_transitions_test.rb
821
- - test/unit/path/path_with_guarded_transitions_test.rb
822
- - test/unit/path/path_with_reached_target_test.rb
823
- - test/unit/path/path_with_transitions_test.rb
824
- - test/unit/path/path_with_unreached_target_test.rb
825
- - test/unit/path/path_without_transitions_test.rb
826
- - test/unit/path_collection/path_collection_by_default_test.rb
827
- - test/unit/path_collection/path_collection_test.rb
828
- - test/unit/path_collection/path_collection_with_deep_paths_test.rb
829
- - test/unit/path_collection/path_collection_with_duplicate_nodes_test.rb
830
- - test/unit/path_collection/path_collection_with_from_state_test.rb
831
- - test/unit/path_collection/path_collection_with_paths_test.rb
832
- - test/unit/path_collection/path_collection_with_to_state_test.rb
833
- - test/unit/path_collection/path_with_guarded_paths_test.rb
834
- - test/unit/state/state_after_being_copied_test.rb
835
- - test/unit/state/state_by_default_test.rb
836
- - test/unit/state/state_final_test.rb
837
- - test/unit/state/state_initial_test.rb
838
- - test/unit/state/state_not_final_test.rb
839
- - test/unit/state/state_not_initial_test.rb
840
- - test/unit/state/state_test.rb
841
- - test/unit/state/state_with_cached_lambda_value_test.rb
842
- - test/unit/state/state_with_conflicting_helpers_after_definition_test.rb
843
- - test/unit/state/state_with_conflicting_helpers_before_definition_test.rb
844
- - test/unit/state/state_with_conflicting_machine_name_test.rb
845
- - test/unit/state/state_with_conflicting_machine_test.rb
846
- - test/unit/state/state_with_context_test.rb
847
- - test/unit/state/state_with_dynamic_human_name_test.rb
848
- - test/unit/state/state_with_existing_context_method_test.rb
849
- - test/unit/state/state_with_human_name_test.rb
850
- - test/unit/state/state_with_integer_value_test.rb
851
- - test/unit/state/state_with_invalid_method_call_test.rb
852
- - test/unit/state/state_with_lambda_value_test.rb
853
- - test/unit/state/state_with_matcher_test.rb
854
- - test/unit/state/state_with_multiple_contexts_test.rb
855
- - test/unit/state/state_with_name_test.rb
856
- - test/unit/state/state_with_namespace_test.rb
857
- - test/unit/state/state_with_nil_value_test.rb
858
- - test/unit/state/state_with_redefined_context_method_test.rb
859
- - test/unit/state/state_with_symbolic_value_test.rb
860
- - test/unit/state/state_with_valid_inherited_method_call_for_current_state_test.rb
861
- - test/unit/state/state_with_valid_method_call_for_current_state_test.rb
862
- - test/unit/state/state_with_valid_method_call_for_different_state_test.rb
863
- - test/unit/state/state_without_cached_lambda_value_test.rb
864
- - test/unit/state/state_without_name_test.rb
865
- - test/unit/state_collection/state_collection_by_default_test.rb
866
- - test/unit/state_collection/state_collection_string_test.rb
867
- - test/unit/state_collection/state_collection_test.rb
868
- - test/unit/state_collection/state_collection_with_custom_state_values_test.rb
869
- - test/unit/state_collection/state_collection_with_event_transitions_test.rb
870
- - test/unit/state_collection/state_collection_with_initial_state_test.rb
871
- - test/unit/state_collection/state_collection_with_namespace_test.rb
872
- - test/unit/state_collection/state_collection_with_state_behaviors_test.rb
873
- - test/unit/state_collection/state_collection_with_state_matchers_test.rb
874
- - test/unit/state_collection/state_collection_with_transition_callbacks_test.rb
875
- - test/unit/state_context/state_context_proxy_test.rb
876
- - test/unit/state_context/state_context_proxy_with_if_and_unless_conditions_test.rb
877
- - test/unit/state_context/state_context_proxy_with_if_condition_test.rb
878
- - test/unit/state_context/state_context_proxy_with_multiple_if_conditions_test.rb
879
- - test/unit/state_context/state_context_proxy_with_multiple_unless_conditions_test.rb
880
- - test/unit/state_context/state_context_proxy_with_unless_condition_test.rb
881
- - test/unit/state_context/state_context_proxy_without_conditions_test.rb
882
- - test/unit/state_context/state_context_test.rb
883
- - test/unit/state_context/state_context_transition_test.rb
884
- - test/unit/state_context/state_context_with_matching_transition_test.rb
885
- - test/unit/state_machine/state_machine_by_default_test.rb
886
- - test/unit/state_machine/state_machine_test.rb
887
- - test/unit/transition/transition_after_being_performed_test.rb
888
- - test/unit/transition/transition_after_being_persisted_test.rb
889
- - test/unit/transition/transition_after_being_rolled_back_test.rb
890
- - test/unit/transition/transition_equality_test.rb
891
- - test/unit/transition/transition_loopback_test.rb
892
- - test/unit/transition/transition_test.rb
893
- - test/unit/transition/transition_transient_test.rb
894
- - test/unit/transition/transition_with_action_test.rb
895
- - test/unit/transition/transition_with_after_callbacks_skipped_test.rb
896
- - test/unit/transition/transition_with_after_callbacks_test.rb
897
- - test/unit/transition/transition_with_around_callbacks_test.rb
898
- - test/unit/transition/transition_with_before_callbacks_skipped_test.rb
899
- - test/unit/transition/transition_with_before_callbacks_test.rb
900
- - test/unit/transition/transition_with_custom_machine_attribute_test.rb
901
- - test/unit/transition/transition_with_different_states_test.rb
902
- - test/unit/transition/transition_with_dynamic_to_value_test.rb
903
- - test/unit/transition/transition_with_failure_callbacks_test.rb
904
- - test/unit/transition/transition_with_invalid_nodes_test.rb
905
- - test/unit/transition/transition_with_mixed_callbacks_test.rb
906
- - test/unit/transition/transition_with_multiple_after_callbacks_test.rb
907
- - test/unit/transition/transition_with_multiple_around_callbacks_test.rb
908
- - test/unit/transition/transition_with_multiple_before_callbacks_test.rb
909
- - test/unit/transition/transition_with_multiple_failure_callbacks_test.rb
910
- - test/unit/transition/transition_with_namespace_test.rb
911
- - test/unit/transition/transition_with_perform_arguments_test.rb
912
- - test/unit/transition/transition_with_transactions_test.rb
913
- - test/unit/transition/transition_without_callbacks_test.rb
914
- - test/unit/transition/transition_without_reading_state_test.rb
915
- - test/unit/transition/transition_without_running_action_test.rb
916
- - test/unit/transition_collection/attribute_transition_collection_by_default_test.rb
917
- - test/unit/transition_collection/attribute_transition_collection_marshalling_test.rb
918
- - test/unit/transition_collection/attribute_transition_collection_with_action_error_test.rb
919
- - test/unit/transition_collection/attribute_transition_collection_with_action_failed_test.rb
920
- - test/unit/transition_collection/attribute_transition_collection_with_after_callback_error_test.rb
921
- - test/unit/transition_collection/attribute_transition_collection_with_after_callback_halt_test.rb
922
- - test/unit/transition_collection/attribute_transition_collection_with_around_after_yield_callback_error_test.rb
923
- - test/unit/transition_collection/attribute_transition_collection_with_around_callback_after_yield_error_test.rb
924
- - test/unit/transition_collection/attribute_transition_collection_with_around_callback_after_yield_halt_test.rb
925
- - test/unit/transition_collection/attribute_transition_collection_with_around_callback_before_yield_halt_test.rb
926
- - test/unit/transition_collection/attribute_transition_collection_with_before_callback_error_test.rb
927
- - test/unit/transition_collection/attribute_transition_collection_with_before_callback_halt_test.rb
928
- - test/unit/transition_collection/attribute_transition_collection_with_callbacks_test.rb
929
- - test/unit/transition_collection/attribute_transition_collection_with_event_transitions_test.rb
930
- - test/unit/transition_collection/attribute_transition_collection_with_events_test.rb
931
- - test/unit/transition_collection/attribute_transition_collection_with_skipped_after_callbacks_test.rb
932
- - test/unit/transition_collection/transition_collection_by_default_test.rb
933
- - test/unit/transition_collection/transition_collection_empty_with_block_test.rb
934
- - test/unit/transition_collection/transition_collection_empty_without_block_test.rb
935
- - test/unit/transition_collection/transition_collection_invalid_test.rb
936
- - test/unit/transition_collection/transition_collection_partial_invalid_test.rb
937
- - test/unit/transition_collection/transition_collection_test.rb
938
- - test/unit/transition_collection/transition_collection_valid_test.rb
939
- - test/unit/transition_collection/transition_collection_with_action_error_test.rb
940
- - test/unit/transition_collection/transition_collection_with_action_failed_test.rb
941
- - test/unit/transition_collection/transition_collection_with_action_hook_and_block_test.rb
942
- - test/unit/transition_collection/transition_collection_with_action_hook_and_skipped_action_test.rb
943
- - test/unit/transition_collection/transition_collection_with_action_hook_and_skipped_after_callbacks_test.rb
944
- - test/unit/transition_collection/transition_collection_with_action_hook_base_test.rb
945
- - test/unit/transition_collection/transition_collection_with_action_hook_error_test.rb
946
- - test/unit/transition_collection/transition_collection_with_action_hook_invalid_test.rb
947
- - test/unit/transition_collection/transition_collection_with_action_hook_multiple_test.rb
948
- - test/unit/transition_collection/transition_collection_with_action_hook_test.rb
949
- - test/unit/transition_collection/transition_collection_with_action_hook_with_different_actions_test.rb
950
- - test/unit/transition_collection/transition_collection_with_action_hook_with_nil_action_test.rb
951
- - test/unit/transition_collection/transition_collection_with_after_callback_halt_test.rb
952
- - test/unit/transition_collection/transition_collection_with_before_callback_halt_test.rb
953
- - test/unit/transition_collection/transition_collection_with_block_test.rb
954
- - test/unit/transition_collection/transition_collection_with_callbacks_test.rb
955
- - test/unit/transition_collection/transition_collection_with_different_actions_test.rb
956
- - test/unit/transition_collection/transition_collection_with_duplicate_actions_test.rb
957
- - test/unit/transition_collection/transition_collection_with_empty_actions_test.rb
958
- - test/unit/transition_collection/transition_collection_with_mixed_actions_test.rb
959
- - test/unit/transition_collection/transition_collection_with_skipped_actions_and_block_test.rb
960
- - test/unit/transition_collection/transition_collection_with_skipped_actions_test.rb
961
- - test/unit/transition_collection/transition_collection_with_skipped_after_callbacks_and_around_callbacks_test.rb
962
- - test/unit/transition_collection/transition_collection_with_skipped_after_callbacks_test.rb
963
- - test/unit/transition_collection/transition_collection_with_transactions_test.rb
964
- - test/unit/transition_collection/transition_collection_without_transactions_test.rb
965
- has_rdoc:
548
+ test_files: []