Skip to content
Browse files

Merge pull request #228 from sanemat/fix/machine-with-action-undefine…

…d-test

Fix some Machine tests failing under Ruby 2.0.0
  • Loading branch information...
2 parents 71af17a + aee198f commit d78a720be258589980f2c8f7370e2e8b2d6ae696 @obrie obrie committed Feb 18, 2013
Showing with 10 additions and 10 deletions.
  1. +10 −10 test/unit/machine_test.rb
View
20 test/unit/machine_test.rb
@@ -656,11 +656,11 @@ def test_should_define_an_event_attribute_writer
end
def test_should_define_an_event_transition_attribute_reader
- assert @object.respond_to?(:state_event_transition)
+ assert @object.respond_to?(:state_event_transition, true)
end
def test_should_define_an_event_transition_attribute_writer
- assert @object.respond_to?(:state_event_transition=)
+ assert @object.respond_to?(:state_event_transition=, true)
end
def test_should_not_define_action
@@ -692,11 +692,11 @@ def test_should_define_an_event_attribute_writer
end
def test_should_define_an_event_transition_attribute_reader
- assert @object.respond_to?(:state_event_transition)
+ assert @object.respond_to?(:state_event_transition, true)
end
def test_should_define_an_event_transition_attribute_writer
- assert @object.respond_to?(:state_event_transition=)
+ assert @object.respond_to?(:state_event_transition=, true)
end
def test_should_not_define_action
@@ -732,11 +732,11 @@ def test_should_define_an_event_attribute_writer
end
def test_should_define_an_event_transition_attribute_reader
- assert @object.respond_to?(:state_event_transition)
+ assert @object.respond_to?(:state_event_transition, true)
end
def test_should_define_an_event_transition_attribute_writer
- assert @object.respond_to?(:state_event_transition=)
+ assert @object.respond_to?(:state_event_transition=, true)
end
def test_should_define_action
@@ -773,11 +773,11 @@ def test_should_define_an_event_attribute_writer
end
def test_should_define_an_event_transition_attribute_reader
- assert @object.respond_to?(:state_event_transition)
+ assert @object.respond_to?(:state_event_transition, true)
end
def test_should_define_an_event_transition_attribute_writer
- assert @object.respond_to?(:state_event_transition=)
+ assert @object.respond_to?(:state_event_transition=, true)
end
def test_should_define_action
@@ -815,11 +815,11 @@ def test_should_define_an_event_attribute_writer
end
def test_should_define_an_event_transition_attribute_reader
- assert @object.respond_to?(:state_event_transition)
+ assert @object.respond_to?(:state_event_transition, true)
end
def test_should_define_an_event_transition_attribute_writer
- assert @object.respond_to?(:state_event_transition=)
+ assert @object.respond_to?(:state_event_transition=, true)
end
def test_should_define_action

0 comments on commit d78a720

Please sign in to comment.
Something went wrong with that request. Please try again.